Reference

Events model

Supporting technical events and traces, their payload/privacy boundary, and how retained evidence differs from business lifecycle observations.

Every piece of supporting telemetry axonpush stores is an event in one append-only table in PostgreSQL. Traces, logs and analytics are all views over that table rather than separate stores, which is what keeps the data model small and the platform cheap to run. Sealed copies for audit go to the evidence archive.

An event

An event is a single fact, a model call, a tool call, an HTTP request, a log line, an error. Every event carries the identifiers that let the rest of the product reconstruct meaning from it:

FieldWhat it is
eventIdServer-assigned UUID for this row.
operationNameThe operation, e.g. web_search or chain.start. The identifier you publish with lands here when the event carries no operation name of its own.
eventTypeThe canonical type, agent.start, agent.tool_call.start, app.log, app.span, custom, and the rest. Defaults to custom.
sourceWhere it was ingested from, such as the events API, OTLP or Sentry.
payloadThe free-form JSON body, subject to the telemetry policy.
traceIdGroups every event in one request into a trace.
spanId / parentSpanIdPosition within the trace’s span tree.
agentId, channelId, appId, orgId, environmentIdScoping.
occurredAtWhen it happened at the source. Send occurredAt on publish to keep the original time across retries.
createdAtAcceptance timestamp.

A publish may also carry a dedupKey, an idempotency key that collapses a retried write onto the first one, and an expiresAt that shortens, but never extends, the 30-day content retention window. When channel_id is omitted the org’s default channel is used.

The backend also derives what it can, model attribution, token and cost accounting, timing, and provenance, and fills those columns in when the event carries enough to compute them. A hand-published custom event leaves most of them unset.

Events group into a trace

A trace is every event sharing one traceId. There is no separate trace record being written on the hot path; a trace is materialised on read by grouping and ordering its events, then deriving a summary, duration, error count, tokens, cost, the agents, models and tools involved.

The SDKs create and propagate a trace context for you, so events published across steps and services stitch into one trace automatically. See the traces guide.

S3 spill

Most payloads live inline in the events table. A payload larger than the inline limit is written to S3 and the row keeps a reference to it, so a single oversized tool result or minidump does not bloat every query that touches the table. The spill is transparent, the API rehydrates the payload from S3 when you read the event back, subject to the same content policy.

Attachments and minidumps have their own cap. Above roughly 1 MiB the bytes are dropped and the record is flagged truncated: true with the real sizeBytes, so you still see that a large payload happened without the store carrying it.

Retention

Diagnostic spans use seven-day retention; identifiable operational evidence and live aggregate queries use a 30-day retained window. Source policies may be stricter. The retention worker removes expired evidence and derived activity. Sealed evidence in the archive follows its own retention tier and legal holds and is not a business milestone.

Business lifecycle observations use the typed workspace observation API and a source-specific metadata allowlist. They retain stable source identity, original occurrence time and explicit source revision; snapshots do not create historical actions. Activity erasure removes retained evidence/derived state and installs a replay tombstone. See Workspaces.

The privacy boundary

Prompt, message, input, output and tool content is opt-in. The organisation’s telemetry policy is applied before an event is persisted and again before it is delivered anywhere, and its default contentCaptureMode is metadata_only, content-bearing keys are replaced with [REDACTED] unless you raise the mode deliberately.

ModeBehaviour
metadata_onlyContent keys (prompt, messages, completion, input, output, tool_result, …) become [REDACTED]. The default.
redactedContent keys are kept but truncated to a short preview.
fullContent is kept as sent.

Credential-shaped keys (authorization, cookie, password, secret, api_key, access_token, …) are redacted in every mode; that is not configurable. Read and write the policy at PATCH /organizations/{orgId}/telemetry-policy, and mirror it client-side with the SDK’s content_capture_mode, redact_keys and max_content_length settings.