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: no SDK required.
OTel integrations can capture prompts, completions, tool arguments, and tool results depending on your framework settings. Review Data Governance before enabling production traffic.

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 classifies it as a tool call.

1. Install

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

What appears in Agnost

  • Raw logs: every received span/event.
  • Conversations: spans grouped by agnost.session_id, session.id, or framework-specific session metadata.
  • Tools: 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 Raw logs first, then Conversations or Tools.

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.
  • Sensitive payloads: scrub attributes before export or disable content capture in your framework.

2. Wire the OTLP exporter pointing at Agnost

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

3. Wrap each agent turn in a span with userId / sessionId