Observability & Tracing
Trace TypeGraph operations, inspect telemetry, and debug search retrieval with explain output.
1
Pass Trace Fields in Context
traceId and spanId live in context, alongside user, group, agent, and thread identity. Do not pass tracing fields beside context.
trace-context.ts
2
Query SDK Telemetry
SDK operational events write to typegraph_telemetry. Use this table for ingest, search, graph, memory, and policy observability.
telemetry.sql
3
Query Business Events
typegraph_events is reserved for business events ingested through event.ingest(). Keeping it separate from telemetry makes event graph queries and dashboards cleaner.
business-events.sql
4
Use Search Explain
explain: true returns active resources, weights, fusion config, candidate counts, timings, graph traces, warnings, and skipped-resource reasons. This is the first place to look when “the fact exists but did not come back.”
explain.ts