Standard export path
Point an OTLP/HTTP trace exporter at the project endpoint. Use protobuf or JSON and the batching behavior already supported by your SDK or collector.
Keep the provider calls in your backend. Export completed LLM spans through your existing OpenTelemetry pipeline and analyze requests, tokens, latency, errors and estimated cost in HyperProxy.
The OTLP adapter is for teams that already instrument backend AI calls and want a focused operational view of model usage.
Point an OTLP/HTTP trace exporter at the project endpoint. Use protobuf or JSON and the batching behavior already supported by your SDK or collector.
HyperProxy reads supported provider, model, token, status and timing attributes from completed client spans rather than storing arbitrary application traces.
Join span usage with the model price catalog, keep incomplete cost visible and compare models or sessions in the same dashboard as gateway traffic.
Create a server API key with ingest permission, then configure the OTLP traces endpoint and authorization header. Keep this token on a trusted backend or collector.
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=\
https://app.hyperproxyai.com/api/v1/admin/projects/PROJECT_ID/v1/traces
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
OTEL_EXPORTER_OTLP_TRACES_HEADERS=\
"Authorization=Bearer hp_obs_YOUR_SERVER_TOKEN"Export a completed GenAI client span with provider, model, duration, status and the token totals that are available.
Retries with the same trace and span IDs are idempotent, so an exporter retry does not duplicate usage or consume another request.
Do not export a gateway call again as external telemetry. Send each AI call through gateway metering or OTLP ingestion once.
| Input | Outcome |
|---|---|
| Completed GenAI client span | Request, provider, model, tokens, latency, status and estimated cost |
| Trace and span IDs | Session grouping and idempotent retry handling |
| Unsupported or unrelated spans | Reported through OTLP partial-success counts rather than stored as general traces |
| Prompt and completion bodies | Not part of the metrics record |
No. The adapter extracts supported completed LLM metrics and does not serve as a general trace store.
OTLP over HTTP with protobuf or JSON, including gzip-compressed requests.
No. It is a project-level server token and must remain on a trusted backend or collector.