From 055e587c0b751b08358c5491559c9a45b293e5f3 Mon Sep 17 00:00:00 2001 From: shrilekha Date: Thu, 24 Apr 2025 20:36:50 +0530 Subject: [PATCH] Routing to Dynatrace docs link --- openllmetry/integrations/dynatrace.mdx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/openllmetry/integrations/dynatrace.mdx b/openllmetry/integrations/dynatrace.mdx index e4e5282..340d335 100644 --- a/openllmetry/integrations/dynatrace.mdx +++ b/openllmetry/integrations/dynatrace.mdx @@ -11,18 +11,18 @@ Analyze all collected LLM traces within Dynatrace by using the native OpenTeleme Go to your Dynatrace environment and create a new access token under **Manage Access Tokens**. The access token needs the following permission scopes that allow the ingest of OpenTelemetry spans, metrics and logs -(openTelemetryTrace.ingest, metrics.ingest, logs.ingest). +(openTelemetryTrace.ingest, metrics.ingest, logs.ingest, events.ingest, metrics.read, settings.write). -Set `TRACELOOP_BASE_URL` environment variable to the URL of your Dynatrace OpenTelemetry ingest endpoint +Initialize OpenLLMetry with the token to collect all the relevant KPIs. -```bash -TRACELOOP_BASE_URL=https://.live.dynatrace.com\api\v2\otlp -``` +Add in the OTLP API endpoint of your Dynatrace environment. -Set the `TRACELOOP_HEADERS` environment variable to include your previously created access token +from traceloop.sdk import Traceloop +headers = { "Authorization": "Api-Token " } +Traceloop.init( + app_name="", + api_endpoint="https://.live.dynatrace.com/api/v2/otlp", + headers=headers +) -```bash -TRACELOOP_HEADERS=Authorization=Api-Token%20 -``` - -Done! All the exported spans along with their span attributes will show up within the Dynatrace trace view. +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).