Skip to main content
Query traces, logs and metrics from your workspace, then read the details behind an interesting result.
Tell your agent the service, approximate time and symptom. It can query Struct and return the evidence behind its answer. You can also inspect telemetry in the Struct app.

Find the service and its fields

Use CLI 5.0.0 or newer for query and record-detail commands. See installation and availability.
Use the returned service name, field names and the signal that answers the question. No records in a window does not mean the application is healthy.

Run a bounded query

Queries are JSON documents in Struct’s query language:
Replace the example service. Use --file query.json for longer documents, which avoids shell quoting. An invalid document exits 1 with query_invalid and says how to fix it. Do not fetch broad telemetry dumps when a small sample answers the question.

Read the matching record

Each runs a raw query with "select": ["*"] and returns every stored column of the row. Use the trace and span IDs from a traces query for telemetry span. For telemetry log, use the id of a raw logs row:
span looks back 24 hours and log 1 hour; pass --since (at most 30 days) for an older span, and --at TIMESTAMP with the log row’s timestamp for an older log row. A log lookup by id reads every log in that window, so keep it to a few hours. A span’s logs are a separate raw logs query filtered by its trace_id and span_id. telemetry log takes a row id since CLI 6.0.0.The MCP telemetry tools provide the same investigation path to an MCP client. Inspect their discovered schemas for supported arguments.

Limits

Each workspace’s telemetry queries from the CLI, the API and MCP share these limits, on every plan:Successful (200) answers from the API’s telemetry query, describe and services routes carry X-RateLimit-Limit, X-RateLimit-Period, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Name, and a 429 from a query limit carries the limit that refused it. After a refusal, wait the Retry-After seconds before you run the query again; never retry in a loop. Struct’s own agents working for your workspace have their own limits, and monitors are never limited. To raise your workspace’s limits, contact Struct.

Check and report

Inspect errors and truncated results. Verify the time window, service and returned timestamps. A paused unclaimed workspace needs claim before queries resume. Keep sensitive record contents out of a public report; cite only the evidence needed to support the conclusion.