Skip to main content
@overmind-lab/trace-sdk instruments the LLM clients you already use in Node.js and exports OpenTelemetry spans to Overmind.

Quick start

OvermindClient(config)

initTracing(options)

Builds an OpenTelemetry NodeSDK with an OTLP/HTTP exporter posting to {baseUrl}/api/v1/traces. Each instrumented call becomes an llm_call span carrying messages and tool calls, model and request parameters, token usage, latency, and errors.

Tracing your own code

The SDK exports typed span helpers mirroring the Python decorators — entryPoint, workflow, tool, retrieval, observe, and the block-scoped withSpan:
Context and identity helpers, all operating on the active span/trace:

Shutdown

shutdown() flushes buffered spans and stops the SDK. With batching enabled (the default), calling it is essential in scripts and serverless handlers:
For long-running servers, hook the exit signal:

Environment variables