Authorization header.
Get started
1
Get your Grafana Cloud OTLP credentials
- Sign in to the Grafana Cloud Portal and select your Grafana Cloud Stack.
- Click Configure in the OpenTelemetry section.
- In the Password / API Token section, click Generate now to create a new API token:
- Give the token a name, for example
openlit. - Click Create token, then Close.
- Give the token a name, for example
- Copy and save the values for
OTEL_EXPORTER_OTLP_ENDPOINTandOTEL_EXPORTER_OTLP_HEADERS.
Replace the space after
Basic in the headers value with %20:
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic%20[base64 instanceID:token]"2
Install the OpenLIT SDK
- Python
- TypeScript
3
Configure the SDK to send to Grafana Cloud
- Python
- TypeScript
Using function arguments:Using environment variables:
<zone>with your Grafana Cloud stack zone (e.g.,prod-us-east-0).<base64 instanceID:token>with the Base64-encoded value of your Instance ID and API token.
Configuration values
Full example
Send to OpenLIT
Send to a self-hosted OpenLIT platform instance
Send to Datadog
Route traces through the Datadog Agent
Integrations
60+ LLM providers, AI frameworks, and vector databases
