How it works
Configure the destination endpoint and authentication headers inopenlit.init() or via environment variables:
- Python
- TypeScript
- 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
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
