Skip to main content

Telemetry Events

OmniCoreAgent records typed telemetry events for user messages, model calls, tool batches, tool calls, observation handling, subagents, final answers, and background run lifecycle changes. Telemetry is available by default. Simple apps use the in-memory telemetry store automatically. Serving integrations can replay stored telemetry and follow new events through Server-Sent Events.

Quick Start


Common Event Types


Streaming

OmniServe uses the same telemetry stream:
  • POST /run streams telemetry for the run it starts and finishes with complete.
  • GET /telemetry/events returns stored telemetry events as JSON. Filter by trace_id, run_id, session_id, task_id, or event_type. The default event limit is 200.
  • GET /telemetry/events/stream?session_id=... replays stored telemetry for a session and follows new telemetry. Add run_id to isolate one run.
  • GET /telemetry/traces/{trace_id} returns one exact trace.
  • GET /telemetry/runs/{run_id}/trace returns the latest trace correlated to one run.
  • GET /telemetry/sessions/{session_id}/trace returns the latest trace for a session.
The older /events/{session_id}, /events/{session_id}/list, and /events/{session_id}/trace routes remain as compact session-oriented aliases. Use ?run_id=... on those aliases to isolate one run inside a shared session. Trace detail routes return 404 when the requested exact trace, run trace, or session trace does not exist. The trace list route defaults to limit=100. Every telemetry event includes its trace_id. Runtime-created events also carry correlation metadata such as run_id, session_id, and agent_id when that context exists. Use trace_id for exact trace lookup. Use run_id to filter or correlate one runtime execution inside a session. If several traces share one run_id, the run lookup returns the latest matching trace. Telemetry traces can also be exported. The exporter layer maps normalized OmniCoreAgent traces to OpenTelemetry span records, then sends them through OTLP/HTTP or vendor presets such as LangSmith and Opik.

Background Run Events

Background agents expose run-local lifecycle events through get_run_events(run_id) and OmniServe’s /background/runs/{run_id}/events. These events are emitted into telemetry, stored in the manager cache, and mirrored to workspace events.jsonl when the task workspace policy allows it. Common background lifecycle names include: