Skip to main content
The OpenLIT SDK sends traces, metrics, and logs using the OpenTelemetry Protocol (OTLP) over HTTP. Any backend that accepts OTLP data — whether a managed SaaS service or a self-hosted stack — can receive data from OpenLIT without any vendor-specific plugins or agents.

How it works

Configure the destination endpoint and authentication headers in openlit.init() or via environment variables:
If you do not set otlp_endpoint, the SDK outputs traces to the console. This is useful during development but should not be used in production.

Supported destinations

OpenLIT

Send to a self-hosted OpenLIT platform instance. Default OTLP endpoint: http://127.0.0.1:4318.

Grafana Cloud

Send to the Grafana Cloud OTLP gateway using Basic Auth with your Instance ID and API token.

Datadog

Send to a local Datadog Agent that forwards traces and metrics to the Datadog backend.

OpenTelemetry Collector

Send to any OpenTelemetry Collector instance for fan-out to multiple backends simultaneously.

Configuration reference

Environment variables take precedence over parameters passed to openlit.init(). This lets you manage destination configuration outside your application code, which is recommended for production deployments.

Integrations

60+ LLM providers, AI frameworks, and vector databases

Configuration

Full reference for all openlit.init() parameters

GPU integrations

Monitor NVIDIA and AMD GPU metrics