Skip to main content
AI Gateway is OpenTelemetry (OTEL) compliant, making it easy to integrate with modern observability tools and platforms. Tracing is supported for deep observability and monitoring.

Tracing

This is applicable only for OTEL trace and will only export OTEL traces and not OTEL metrics
OpenTelemetry tracing allows you to capture detailed traces of requests as they flow through the AI Gateway. This enables debugging, performance analysis, and end-to-end visibility. Traces storage is managed by TrueFoundry and they can be viewed in the Monitor section under the AI Gateway tab. Optionally, traces can also be configured to be exported to any existing OTEL compatible observability platform. This will not affect the storage of traces managed by TrueFoundry.
OpenTelemetry traces storage and export flow in TrueFoundry

AI Gateway - OpenTelemetry Tracing Flow

Export Traces to OTEL Compatible Observability Platforms

To export spans to your existing OTEL Platform:
OpenTelemetry Config form for exporting spans to existing OTEL platform
request with spans

AI Gateway - OpenTelemetry Tracing Export Config Form

  1. Go to the Configs tab in the AI Gateway section
  2. Click on OTEL Config
  3. Toggle on OTEL Traces Exporter Configuration
  4. Select either HTTP Configuration or gRPC Configuration based on your OTEL platform’s endpoint
  5. 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
  6. Select the encoding (only for HTTP Configuration) as either proto or json
  7. Optionally, enter the headers required to export spans to the OTEL provider for eg., authorization, region, etc..