Observe

Traces

Find, filter, sort and group traces, then read one trace span by span from the dashboard, the API or an SDK.

A trace is one request seen whole: the agent run and every LLM call, tool call, retrieval and HTTP hop under it, joined by a trace ID. axonpush builds traces at read time from the spans you send through OTLP, the SDKs or Sentry. There is nothing to configure: any span with a trace ID shows up here.

Use traces when you want to answer “what happened on this request?” For numbers across many requests, use Analytics. For individual log lines, use Events.

In the dashboard

Open Traces in the sidebar. The page lists the traces in the selected time window, failed first in the header count (“N failed and M finished in this window”).

  • Filter bar. Type key:value tokens, for example status:error tool:search_orders. The prefixes are service, operation, model, agent, tool, provider, source, app, key (API key ID), release, status, session, user, semanticKind and duration (duration:>1.5s). Plain words search inside span content and metadata too, including prompts, tool arguments and error messages.
  • Time range. Pick a preset or a custom range. The window can be at most 31 days.
  • Grouped / Individual. Grouped collapses traces that share the same request and result (see Trace groups). Individual lists every trace.
  • Views. Save the current filters and time range as a named view. Saved views are stored in your browser, not on the server, so they do not follow you to another machine.
  • Show system activity. By default the list shows business activity only. Toggle this to include system activity as well.

Click a trace to open it. The trace page has two views, Story (the run as a readable sequence of steps) and Timing (the waterfall). Select a span to inspect its fields. Press j and k to move to the next and previous trace in the list. When the trace carries a session ID, Conversation opens the session it belongs to.

List traces

GET /traces returns one summary row per trace in the window. Every filter is optional, and a trace is kept when any of its spans matches. Repeat a filter to OR its values: ?service=api&service=worker. Different filters are ANDed.

curl -s "https://api.axonpush.xyz/traces?environment=prod&errorsOnly=true&sort=duration_desc&limit=20" \
-H "X-API-Key: $AXONPUSH_API_KEY"

The TypeScript SDK’s traces.list() only passes since, until, limit and offset. To filter or sort from TypeScript, call GET /traces directly.

Filters

ParameterMatches
since, untilRFC3339 window. Defaults to the 24 hours before until, and until defaults to now. At most 31 days.
qCase-insensitive substring of span content and metadata
serviceservice.name of any span
operationOperation or span name
modelRequest or response model
providerModel provider
agentAgent name
toolTool name
sourceIngest source, for example sdk, otlp or sentry
appApplication ID
environmentEnvironment slug or ID
apiKeyID of the API key that sent the span
releaseRelease or build tag
statusSpan status, for example ok or error
sessionSession ID
userEnd-user ID
semanticKindagent, tool, llm, retriever, db, http or log
errorsOnlytrue keeps traces with at least one error span
minDurationMsKeeps traces whose longest span is at least this long
activityClassbusiness, system or all. Omitted means all.

Sorting and paging

sort takes last_seen_desc (default), last_seen_asc, duration_desc, cost_desc or tokens_desc. Page with limit (default 50, max 500) and offset (max 10,000). Past 10,000 rows, narrow the time window instead.

What a row contains

Each row has the trace ID, start and end time, span and error counts, total tokens, cost in USD, duration, the providers and models used, and fields read from the root span: rootSpanName, serviceName, environment, release, sessionId, source, and customer, workflow and outcome (from root span attributes with those names). firstErrorType is the type of the earliest error span.

outcome is only what your application reported on the root span. A trace with no error spans is not marked successful on your behalf.

Get one trace

GET /traces/{traceId} returns the trace’s spans ordered by time, up to 500 per page. When hasMore is true, pass nextCursor back as cursor to read the next page.

curl -s "https://api.axonpush.xyz/traces/$TRACE_ID?limit=200" \
-H "X-API-Key: $AXONPUSH_API_KEY"

Span metadata (timing, model, tokens, cost, status, error type) is always returned. Span content (payload, attributes, error message) is returned only when the caller may read content:

  • In the dashboard, organisation owners and admins.
  • With an API key, the key needs the content:read scope. Spans whose operation name contains replay also need replay:read.

Otherwise each span comes back with contentState: "restricted" and no content. Every span whose content is returned is recorded in the audit log as a content.read. See Sessions for the content model.

If the trace’s spans have aged out of hot storage but the archive still holds them, the response is 404 with errors[].value set to ARCHIVED. Load it from the archive as described in Archived traces.

Trace groups

Most traces repeat: the same operation, from the same service, ending the same way. Trace groups collapse them so a recurring failure is one row with a count, not a hundred rows.

Traces are grouped by app, environment, activity class, service, root operation, reported outcome, result (error or finished) and first error type. Traces whose root operation has no name are not grouped with each other.

GET /trace-groups takes the same filters, sort and paging as GET /traces and returns groups plus window totals (totalGroups, totalTraces, failedTraces, finishedTraces) and the resolved since and until. Each group has a groupKey, traceCount, firstSeen, lastSeen, minimum and maximum duration, and a representativeTraceId you can open directly.

To list the traces in a group, pass its groupKey to GET /trace-groups/{groupKey}/traces with the same filters. Pin since and until to the values the groups response returned, otherwise a relative window moves between the two calls.

curl -s "https://api.axonpush.xyz/trace-groups?environment=prod&errorsOnly=true" \
  -H "X-API-Key: $AXONPUSH_API_KEY"

curl -s "https://api.axonpush.xyz/trace-groups/$GROUP_KEY/traces?since=$SINCE&until=$UNTIL" \
  -H "X-API-Key: $AXONPUSH_API_KEY"

The SDK helpers for trace groups ship in the next SDK release.

Scope and limits

  • An API key bound to an app or environment only ever sees that app or environment, whatever filters it sends. Spans from other apps that share the trace ID are not rolled into the row.
  • Trace group reads are cached for 15 seconds. Pass fresh=true to bypass the cache. The X-Axonpush-As-Of response header says when the result was computed.
  • Trace reads run under a 20-second server deadline. If a broad query times out, narrow the window or add filters.
  • Duration is the longest span in the trace, not the wall-clock time between the first and last span.
  • The window filters on span time: a trace that started before since shows only its spans inside the window.