Observability
Trace agent and workflow execution with OpenTelemetry. A no-op tracer is used by default, so instrumentation is free until you wire an exporter.
Instrument an agent
observability.ts
import { instrumentAgent, withSpan } from '@redtuma/observability'
instrumentAgent(agent) // generate/stream now emit spans
await withSpan('my-task', async () => {
// your own traced work
})Exporters
Point the tracer at any OpenTelemetry-compatible backend (Jaeger, Honeycomb, Grafana Tempo, …) by configuring the OTel SDK in your app. Redtuma emits spans for agent calls and workflow steps; the rest is standard OTel.
Registry telemetry
Pass telemetry to the Redtuma registry to share a tracer across every registered agent and workflow.