> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenTelemetry(OTel) Export

> Export Prisma AIRS AI Gateway data to OpenTelemetry compatible endpoints for external observability

The AI Gateway supports exporting data to OpenTelemetry (OTel) compatible collectors, enabling integration with your existing observability infrastructure. Choose the export type based on your needs:

<CardGroup cols={2}>
  <Card title="Analytics" icon="chart-bar" href="/docs/aigw/product/enterprise-offering/otel/analytics">
    Export aggregated analytics data including request counts, latency metrics, token usage, and cost tracking to OTel-compatible collectors.
  </Card>

  <Card title="Complete Logs" icon="file-lines" href="/docs/aigw/product/enterprise-offering/otel/complete-logs">
    Export complete LLM request/response logs with full prompt and completion content following GenAI semantic conventions.
  </Card>
</CardGroup>

## Comparison

| Feature                        | Analytics          | Complete Logs              |
| ------------------------------ | ------------------ | -------------------------- |
| **Data Type**                  | Aggregated metrics | Full request/response logs |
| **Includes Prompts**           | No                 | Yes                        |
| **Includes Completions**       | No                 | Yes                        |
| **Token Usage**                | Yes                | Yes                        |
| **Latency Metrics**            | Yes                | Yes                        |
| **GenAI Semantic Conventions** | No                 | Yes                        |
| **LangSmith Compatible**       | No                 | Yes                        |
| **Status**                     | Stable             | Experimental               |

## Use Cases

### Analytics

Best for:

* Building dashboards in Datadog, Grafana, or similar tools
* Setting up alerts on error rates or latency
* Long-term storage of usage metrics
* Cost tracking and attribution

### Complete Logs

Best for:

* Debugging specific LLM interactions
* Quality analysis of prompt/completion pairs
* Integration with LangSmith or similar GenAI observability tools
* Compliance requirements needing full audit trails

## Getting Started

<Steps>
  <Step title="Choose your export type">
    Determine whether you need aggregated metrics or complete logs based on your use case
  </Step>

  <Step title="Configure environment variables">
    Set the appropriate environment variables for your chosen export type
  </Step>

  <Step title="Deploy and verify">
    Redeploy your AI Gateway and verify data appears in your OTel collector
  </Step>
</Steps>

<Note>
  Both export types can be enabled simultaneously if you need both aggregated metrics and complete logs.
</Note>


## Related topics

- [OpenLIT](/docs/aigw/integrations/tracing-providers/openlit.md)
- [MLflow Tracing](/docs/aigw/integrations/tracing-providers/ml-flow.md)
- [Arize Phoenix](/docs/aigw/integrations/tracing-providers/phoenix.md)
- [OpenTelemetry for LLM Observability](/docs/aigw/product/observability/opentelemetry.md)
- [Analytics Export](/docs/aigw/product/enterprise-offering/otel/analytics.md)
