21 Jan 2025 10:11 AM
Dynatrace leverages OpenLLMetry to ingest telemetry data of your AI workloads. OpenLLMetry is a set of extensions built on top of OpenTelemetry that gives you complete observability over your LLM application.
Simply install the OpenLLMetry SDK using the following command:
pip install traceloop-sdk
Instrument your GenAI application by adding the following code snippet to your app:
from traceloop.sdk import Traceloop
headers = { "Authorization": "Api-Token <YOUR_DT_API_TOKEN>" }
Traceloop.init(
app_name="<your-service>",
api_endpoint="https://<YOUR_ENV>.live.dynatrace.com/api/v2/otlp",
headers=headers
)
Additional information, as well as support for different languages can be found in our documentation.