Appearance


To send OpenTelemetry metrics and traces generated by ARMS 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
SDK
For direct integration into your Python applications:
Function Arguments
python
import elsai_arms
elsai_arms.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.
Environment Variables
python
import elsai_arms
elsai_arms.init()Set these environment variables:
shell
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.
See the ARMS SDK configuration docs for more advanced options.
CLI
For zero-code auto-instrumentation via command line:
CLI Arguments
shell
# Using CLI arguments
elsai-arms-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.
Environment Variables
shell
# 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
elsai-arms-instrument python app.pyReplace:
YOUR_ONEUPTIME_SERVICE_TOKENwith the OneUptime Ingestion Key value you copied in Step 1.
See the ARMS SDK configuration docs for more advanced options.
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