/metrics, labels, and the full metric catalog on self-hosted gateways, see Prometheus & Grafana integration.
Tracing
The OTEL Traces Exporter sends only trace data to your OTEL platform, not metrics. For OpenTelemetry metrics export, see Metrics below.

Export Traces to OTEL Compatible Observability Platforms
To export spans to your existing OTEL Platform:
- Go to AI Gateway → Controls → Settings in the TrueFoundry dashboard
- Scroll down to the OTEL Config section and click the edit button
- Enable the OTEL Traces Exporter Configuration toggle
- Select either HTTP Configuration or gRPC Configuration based on your OTEL platform’s endpoint
- Enter the complete traces endpoint for eg., the traces endpoint for Grafana Cloud is
https://otlp-gateway-prod-ap-south-1.grafana.net/otlp/v1/traces - Select the encoding (only for HTTP Configuration) as either
protoorjson - Optionally, enter the headers required to export spans to the OTEL provider for eg., authorization, region, etc..
Metrics
The OTEL Metrics Exporter sends only metrics to your OTEL platform, not traces. For OpenTelemetry traces export, see Tracing above.

Export Metrics to OTEL Compatible Observability Platforms
To export metrics to your existing OTEL platform:
- Go to AI Gateway → Controls → Settings in the TrueFoundry dashboard
- Scroll down to the OTEL Config section and click the edit button
- Enable the OTEL Metrics Exporter Configuration toggle
- Select either HTTP Configuration or gRPC Configuration based on your OTEL platform’s metrics endpoint
- Enter the complete metrics endpoint—for example, Datadog uses
https://otlp.datadoghq.com/v1/metrics - Select the encoding (only for HTTP Configuration) as either
protoorjson - Optionally, enter the headers required to export metrics to the OTEL provider—for example, API keys or vendor-specific headers
- Click Save
Example: Exporting Metrics to Datadog
Datadog supports OTLP metrics ingest natively. Use the following configuration: Step 1 — Set the environment variable on yourtfy-llm-gateway deployment
Datadog’s OTLP ingest endpoint only accepts delta-encoded metrics. Set this environment variable in your tfy-llm-gateway deployment before configuring the exporter:
| Field | Value |
|---|---|
| Protocol | HTTP Configuration |
| Metrics Endpoint | https://otlp.datadoghq.com/v1/metrics |
| Encoding | proto |
| Header | Value |
|---|---|
dd-api-key | <your-datadog-api-key> |
dd-otel-metric-config | {"histograms":{"mode":"distributions"}} |
dd-otel-metric-config header enables the histogram translator, which converts OTLP histogram metrics into Datadog distribution metrics. This is required to query percentile aggregations such as p50:ai_gateway_request_processing_ms{*}, p95:ai_gateway_request_processing_ms{*}, and similar metrics in the Datadog Metrics Explorer.
For sites other than US1, use the region-specific endpoint—for example,
https://otlp.datadoghq.eu/v1/metrics for the EU site. See the Datadog OTLP metrics ingest documentation for the full list of endpoints and additional dd-otel-metric-config options.For scraping
/metrics with Prometheus, OTLP endpoint patterns, and a full list of metric names and labels, see Prometheus & Grafana integration.