To send OpenTelemetry data collected by OpenLIt from your LLM Application, You need to set the otlp_endpoint and otlp_headers arguments according to your needs.

import openlit

openlit.init(otlp_endpoint="http://127.0.0.1:4318")

Alternatively, you can configure the OTLP endpoint by setting the OTEL_EXPORTER_OTLP_ENDPOINT and the OTLP headers by setting the OTEL_EXPORTER_OTLP_HEADERS(Optional) environment variable as recommended in the OpenTelemetry documentation.

Refer to the OpenLIT Python SDK repository for more advanced configurations and use cases.