To directly send OpenTelemetry metrics and traces generated by OpenLIT SDK from your AI Application to OneUptime, Follow the below steps.

1

Get your OneUptime OpenTelemetry Credentials

  1. Sign in to your OneUptime account.
  2. Click on More in the Navigation bar and click on Project Settings.
  3. On the Telemetry Ingestion Key page, click on Create Ingestion Key to create a token.
  4. Once you created a token, click on View to view and copy the token.
2

Add the following two lines to your application code:

import openlit

openlit.init(
  otlp_endpoint="https://otlp.oneuptime.com", 
  otlp_headers="x-oneuptime-token=YOUR_ONEUPTIME_SERVICE_TOKEN"
)

Replace:

  1. YOUR_ONEUPTIME_SERVICE_TOKEN with the OneUptime Ingestion Key value you copied in Step 1.

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

3

Visualize in OneUptime

Once your LLM application is instrumented, you should see the traces and metrics in the OneUptime telemetry traces page.