Skip to content

Commit 055e587

Browse files
authored
Routing to Dynatrace docs link
1 parent b5aa562 commit 055e587

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

openllmetry/integrations/dynatrace.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ Analyze all collected LLM traces within Dynatrace by using the native OpenTeleme
1111

1212
Go to your Dynatrace environment and create a new access token under **Manage Access Tokens**.
1313
The access token needs the following permission scopes that allow the ingest of OpenTelemetry spans, metrics and logs
14-
(openTelemetryTrace.ingest, metrics.ingest, logs.ingest).
14+
(openTelemetryTrace.ingest, metrics.ingest, logs.ingest, events.ingest, metrics.read, settings.write).
1515

16-
Set `TRACELOOP_BASE_URL` environment variable to the URL of your Dynatrace OpenTelemetry ingest endpoint
16+
Initialize OpenLLMetry with the token to collect all the relevant KPIs.
1717

18-
```bash
19-
TRACELOOP_BASE_URL=https://<YOUR_ENV>.live.dynatrace.com\api\v2\otlp
20-
```
18+
Add in the OTLP API endpoint of your Dynatrace environment.
2119

22-
Set the `TRACELOOP_HEADERS` environment variable to include your previously created access token
20+
from traceloop.sdk import Traceloop
21+
headers = { "Authorization": "Api-Token <YOUR_DT_API_TOKEN>" }
22+
Traceloop.init(
23+
app_name="<your-service>",
24+
api_endpoint="https://<YOUR_ENV>.live.dynatrace.com/api/v2/otlp",
25+
headers=headers
26+
)
2327

24-
```bash
25-
TRACELOOP_HEADERS=Authorization=Api-Token%20<YOUR_ACCESS_TOKEN>
26-
```
27-
28-
Done! All the exported spans along with their span attributes will show up within the Dynatrace trace view.
28+
Done! All the exported spans along with their span attributes will show up within the Dynatrace trace view. For more information, check out the [docs link](https://docs.dynatrace.com/docs/shortlink/ai-ml-get-started).

0 commit comments

Comments
 (0)