API Data Sources & OTLP

Use this page when your application already emits OpenTelemetry and you want to send that telemetry to Revenium. If you need runtime cost controls, richer business attribution, or the simplest first integration, start with the SDK path instead.

Quick Path

  1. Create or choose a metering-only Revenium API key (rev_mk_) for the environment.

  2. Point your OpenTelemetry exporter at Revenium.

  3. Run a test request.

  4. Confirm tokens, model, provider, and cost appear in logs, traces, or AI analytics.

export OTEL_EXPORTER_OTLP_ENDPOINT=https://api.revenium.ai/v2/otlp
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer rev_mk_your_tenant_yourkey"
circle-exclamation

When To Use This Path

Scenario
Start here

Your app already emits OpenTelemetry and you want telemetry ingestion

You need runtime cost controls, SDK attribution, or middleware setup

You need to understand data-source identifiers

You need schema-level API detail

What Revenium Reads

For OTLP spans and logs, Revenium reads standard GenAI semantic convention fields for provider, model, token usage, timing, and errors. Revenium-specific attributes such as revenium.product.name, revenium.organization.name, and revenium.subscriber.id add business attribution.

For the full endpoint matrix, authentication priority, gRPC caveats, and payload examples, continue to OTLP Integration.

Last updated

Was this helpful?