OpenLLMetry Hub AI Gateway
1. Unified Apica Destination Details
2. Configuration for OpenLLMetry Hub (Self-Hosted)
# Enable the OpenTelemetry Exporter in the Hub
export HUB_OTEL_EXPORTER_ENABLED=true
# Point the Hub's outgoing telemetry to Apica
export OTEL_EXPORTER_OTLP_ENDPOINT="https://<your-ascent-instance>/v1/otel"
# Set the authentication header for Apica
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <Apica-Ingest-Token>"
# Set the protocol to Protobuf for high-performance ingestion
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
# Resource tagging for Apica dashboards
export OTEL_RESOURCE_ATTRIBUTES="service.name=openllmetry-hub,env=production"3. Usage with the Traceloop SDK
4. Data Processing in Apica Flow
5. Key Implementation Notes
SQL Query for "Top 5 Most Expensive Models"
1. The Cost Attribution Query
2. Visualization Setup
3. Deep-Dive: Average Cost per Request
4. Refining Data with OpenLLMetry Attributes
5. Next Step: Smart Alerts
Last updated
Was this helpful?