OneUptime


To send OpenTelemetry metrics and traces generated by Shield360 from your AI Application to OneUptime, follow the below steps.
1. Get your Credentials
- Sign in to your OneUptime account
- Navigate to Project Settings:
- Click on More in the Navigation bar
- Click on Project Settings
- Create Telemetry Ingestion Key:
- On the Telemetry Ingestion Key page, click on Create Ingestion Key to create a token

- On the Telemetry Ingestion Key page, click on Create Ingestion Key to create a token
- Copy the Token:
- Once you created a token, click on View to view and copy the token

- Once you created a token, click on View to view and copy the token
2. Instrument your application
For direct integration into your Python applications:
import shield360
shield360.init( otlp_endpoint="https://otlp.oneuptime.com", otlp_headers="x-oneuptime-token=YOUR_ONEUPTIME_SERVICE_TOKEN")Replace:
YOUR_ONEUPTIME_SERVICE_TOKENwith the OneUptime Ingestion Key value you copied in Step 1.
import shield360
shield360.init()Set these environment variables:
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.oneuptime.com"export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-token=YOUR_ONEUPTIME_SERVICE_TOKEN"Replace:
YOUR_ONEUPTIME_SERVICE_TOKENwith the OneUptime Ingestion Key value you copied in Step 1.
Refer to the Shield360 SDK configuration reference for more advanced configurations and use cases.
For zero-code auto-instrumentation via command line:
# Using CLI argumentsshield360-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.pyReplace:
YOUR_ONEUPTIME_SERVICE_TOKENwith the OneUptime Ingestion Key value you copied in Step 1.
# 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 applicationshield360-instrument python app.pyReplace:
YOUR_ONEUPTIME_SERVICE_TOKENwith the OneUptime Ingestion Key value you copied in Step 1.
Refer to the Shield360 SDK configuration reference for more advanced configurations and use cases.
3. Visualize in OneUptime
Once your LLM application is instrumented, you can explore the telemetry data in OneUptime:
- Navigate to Telemetry: Go to your OneUptime project dashboard
- View Traces: Check the Telemetry Traces page to see your AI application traces