AI Agent Tracing and Telemetry (trace/index.ts)

atomic-agent · src/tracing/trace/index.ts · typescript · MIT
analytics, ai, infra, lang:typescript

TypeScript module that provides trace event types, serialization, buses, and sinks for monitoring AI agent execution and LLM interactions.

// Source: https://github.com/AtomicBot-ai/atomic-agent | License: MIT | Copyright 2026 Atomic Bot
// Provided via justclaw.it.com; keep this notice with the code.
export type {
  TraceEvent,
  TraceEventBase,
  TraceEventType,
  TraceLlmCompletion,
  TraceLlmTiming,
  TraceLoopDetected,
  TraceParseRetry,
  TraceBatchTrimmed,
  TraceBatchApprovalBarriers,
  TracePromptCaptured,
  TracePromptTokens,
  TraceProfileClipped,
  TraceProfileFactsEvicted,
  TraceSessionStarted,
  TraceStepFinished,
  TraceStepStarted,
  TraceToolInvocation,
  TraceError,
  TraceTruncated,
  TraceTurnFinished,
  TraceTurnStarted,
} from "./trace-event.js";
export { serializeTraceEvent } from "./trace-event.js";
export type { TraceBus, TraceSink } from "./trace-bus.js";
export { createTraceBus } from "./trace-bus.

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key