Skip to main content
Agnost AI runs a hosted OTLP collector at otel.agnost.ai. Any framework that emits OpenTelemetry spans can ship them straight to Agnost AI: no SDK required.

Quick Setup

Set two environment variables before starting your app:
Get your org ID from app.agnost.ai. For SDKs that take an explicit URL, use https://otel.agnost.ai/v1/traces.

Framework Guides

Custom Tool Spans

If your stack doesn’t have a framework integration, wrap each agent / tool call in an OTel span. Name the span with a tool. prefix so Agnost AI classifies it as a tool call.

1. Install

Already have an OTel SDK and the OTLP exporter installed? Skip. No OTel yet?

2. Wire the OTLP exporter pointing at Agnost AI

Already have an OTel TracerProvider? Append Agnost AI as an additional span processor:
No OTel yet? Full setup:

3. Wrap each tool call in a span with userId / sessionId

Additional properties

Agnost AI recognizes these OTel fields and preserves non-reserved custom span attributes as event metadata:
Note: If you don’t set agnost.session_id or another supported session attribute, Agnost AI uses the trace ID as the session ID. Each trace therefore appears as a separate session. Reuse a stable session ID to group multiple traces into one conversation.

Send a trace with curl

This sends one completion span with its input/output and GenAI attributes, plus a child tool.get_weather span with its own input/output:
A successful export returns HTTP 200.

What appears in Agnost AI

  • Events: every received span/event.
  • Conversations: spans grouped by agnost.session_id, session.id, or framework-specific session metadata.
  • Tool calls: spans named with tool.* or framework tool-call attributes.
  • Errors: spans marked failed or exceptions recorded on spans.

Verify

  1. Start your app with the OTel exporter configured.
  2. Run one agent turn or tool call.
  3. Open app.agnost.ai.
  4. Check Events first, then Conversations or Tool calls.

Troubleshooting

  • No data: confirm the endpoint is https://otel.agnost.ai/v1/traces when your SDK expects a trace URL.
  • Wrong org: confirm X-Agnost-Org-ID is attached to the OTLP exporter.
  • No input/output text: your framework may not export message content by default, or you may have disabled it.

Next steps

  • Events: verify the spans Agnost AI received.
  • Tool calls: inspect tool reliability and latency.
  • Intents: organize production conversations by what users wanted.