Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.
TypeScript agent-harnessagent-harness-engineeringai-engineeringai-observabilityamd-gpuclaude-codeclickhousecodexcoding-agentcoding-agentscursorgenaigpu-monitoringllm-observabilityllmopsnvidia-smiobservabilityopen-sourceopenaiopentelemetry
<Frame>
<img src="https://dt-cdn.net/images/2-service-dashboard-3840-c19987541f.png" />
<img src="https://dt-cdn.net/images/trace-2858-da5e9a13af.png" />
</Frame>
To send OpenTelemetry metrics and traces generated by OpenLIT from your AI Application to Dynatrace, follow the below steps.
### 1. Get your Credentials
1. **Log into your Dynatrace environment**
1. **Generate an API Token**:
- Go to **Settings** → **Integration** → **API tokens**
- Click **Generate token**
- Give it a name (e.g., `openlit-token`)
- Enable these scopes:
- `openTelemetryTrace.ingest` - for trace ingestion
- `metrics.ingest` - for metrics ingestion
- `logs.ingest` - for logs ingestion (optional)
- Click **Generate** and copy the token
1. **Get your Environment ID**:
- Your Dynatrace URL format: `https://{environment-id}.live.dynatrace.com`
- Extract the `{environment-id}` part from your Dynatrace URL
1. **Construct your OTLP endpoint**:
- Format: `https://{environment-id}.live.dynatrace.com/api/v2/otlp`
- Example: `https://abc12345.live.dynatrace.com/api/v2/otlp`