> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlit.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OneUptime

> LLM Observability with OneUptime and OpenLIT

<Frame>
  <img src="https://mintcdn.com/openlit/o7M0DoQ9lLUZaVc9/images/oneuptime-dashboard-1.png?fit=max&auto=format&n=o7M0DoQ9lLUZaVc9&q=85&s=8ba9a23626f07de000ed3855511c3fcc" width="2546" height="1333" data-path="images/oneuptime-dashboard-1.png" />

  <img src="https://mintcdn.com/openlit/oP6rqLGiwYvXWG_M/images/oneuptime-dashboard-2.png?fit=max&auto=format&n=oP6rqLGiwYvXWG_M&q=85&s=a3f65bc4b089ece4ba1c3b7cd26b1fc2" width="2545" height="1330" data-path="images/oneuptime-dashboard-2.png" />
</Frame>

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

### 1. Get your Credentials

1. **Sign in to your OneUptime account**
2. **Navigate to Project Settings**:
   * Click on **More** in the Navigation bar
   * Click on **Project Settings**
3. **Create Telemetry Ingestion Key**:
   * On the Telemetry Ingestion Key page, click on **Create Ingestion Key** to create a token
     ![](https://oneuptime.com/docs/static/images/TelemetryIngestionKeys.png)
4. **Copy the Token**:
   * Once you created a token, click on **View** to view and copy the token
     ![](https://oneuptime.com/docs/static/images/TelemetryIngestionKeyView.png)

### 2. Instrument your application

<Tabs>
  <Tab title="SDK">
    **For direct integration into your Python applications:**

    <Tabs>
      <Tab title="Function Arguments">
        ```python theme={null}
        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.
      </Tab>

      <Tab title="Environment Variables">
        ```python theme={null}
        import openlit

        openlit.init()
        ```

        Set these environment variables:

        ```shell theme={null}
        export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.oneuptime.com"
        export OTEL_EXPORTER_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.
      </Tab>
    </Tabs>

    Refer to the OpenLIT [Python SDK repository](https://github.com/openlit/openlit/tree/main/sdk/python) for more advanced configurations and use cases.
  </Tab>

  <Tab title="CLI">
    **For zero-code auto-instrumentation via command line:**

    <Tabs>
      <Tab title="CLI Arguments">
        ```shell theme={null}
        # Using CLI arguments
        openlit-instrument \
          --otlp-endpoint "https://otlp.oneuptime.com" \
          --otlp-headers "x-oneuptime-token=YOUR_ONEUPTIME_SERVICE_TOKEN" \
          --service-name "my-ai-service" \
          --deployment-environment "production" \
          python app.py
        ```

        Replace:

        1. `YOUR_ONEUPTIME_SERVICE_TOKEN` with the OneUptime Ingestion Key value you copied in Step 1.
      </Tab>

      <Tab title="Environment Variables">
        ```shell theme={null}
        # Set environment variables (takes precedence over CLI args)
        export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.oneuptime.com"
        export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-token=YOUR_ONEUPTIME_SERVICE_TOKEN"
        export OTEL_SERVICE_NAME="my-ai-service"
        export OTEL_DEPLOYMENT_ENVIRONMENT="production"

        # Run your application
        openlit-instrument python app.py
        ```

        Replace:

        1. `YOUR_ONEUPTIME_SERVICE_TOKEN` with the OneUptime Ingestion Key value you copied in Step 1.
      </Tab>
    </Tabs>

    Refer to the OpenLIT [Python SDK repository](https://github.com/openlit/openlit/tree/main/sdk/python) for more advanced configurations and use cases.
  </Tab>
</Tabs>

### 3. Visualize in OneUptime

Once your LLM application is instrumented, you can explore the telemetry data in OneUptime:

1. **Navigate to Telemetry**: Go to your OneUptime project dashboard
2. **View Traces**: Check the **Telemetry Traces** page to see your AI application traces
