VoltAgentObservability, then pass userId / conversationId per call.
VoltAgent traces can include prompts, completions, tool inputs, and tool outputs. Review Data Governance before enabling production traffic.
1. Install
Already have@voltagent/core and @opentelemetry/exporter-trace-otlp-proto? Skip.
No setup yet?
2. Wire the OTel exporter pointing at Agnost
Already haveVoltAgentObservability? Append a span processor for Agnost to the existing spanProcessors array:
3. Pass userId / conversationId per call
userId → user.id and conversationId → conversation.id on every span: both read directly by Agnost for user / session grouping.
What appears in Agnost
- Conversations grouped by
conversationId. - User-level analytics grouped by
userId. - Raw logs for every exported span.
Verify
Run oneagent.generateText call, then open Raw logs and confirm the span arrived.
Troubleshooting
- Confirm your
BatchSpanProcessoris attached toVoltAgentObservability. - Confirm
X-Agnost-Org-IDis set on the exporter. - Confirm
userIdandconversationIdare passed per call.
