Using the SDK
Install OpenLIT
Initialize OpenLIT in your Application
YOUR_OTEL_ENDPOINT
with the URL of your OpenTelemetry backend, such as http://127.0.0.1:4318
if you are using OpenLIT and a local OTel Collector.To send metrics and traces to other Observability tools, refer to the supported destinations.For more advanced configurations and application use cases, visit the OpenLIT Python repository or OpenLIT Typescript repository.Using the Collector
Pull `otel-gpu-collector` Docker Image
Run `otel-gpu-collector` Docker container
Docker Compose: Add the following config under `services`
Host IP: Use the Host IP to connect to OTel Collector
Environment Variable | Description | Default Value |
---|---|---|
GPU_APPLICATION_NAME | Name of the application running on the GPU | default_app |
GPU_ENVIRONMENT | Environment name (e.g., staging, production) | production |
OTEL_EXPORTER_OTLP_ENDPOINT | OpenTelemetry OTLP endpoint URL | (required) |
OTEL_EXPORTER_OTLP_HEADERS | Headers for authenticating with the OTLP endpoint | Ignore if using OpenLIT |