Google ADK

Supported OS Linux Windows Mac OS

Intégration1.0.0
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Overview

Use the Google Agent Development Kit (ADK) integration to monitor, troubleshoot, and evaluate your applications that use Google ADK with LLM Observability.

Datadog LLM Observability helps AI engineers, data scientists, and application developers quickly develop, evaluate, and monitor LLM applications. Confidently improve output quality, performance, costs, and overall risk with structured experiments, end-to-end tracing across AI agents, and evaluations.

The Google ADK auto-instrumentation allows you to:

  • Visualize LLM calls with their associated token usage and costs
  • See tool calls made by your application, with their respective inputs and outputs, including code execution tools
  • Observe handoffs between different agents in your agentic stack

Setup

  1. Install the ddtrace package:

    pip install ddtrace
    
  2. Run your application using the ddtrace-run command to initialize the LLM Observability auto-instrumentation:

    DD_API_KEY=<YOUR_DD_API_KEY> DD_SITE=<YOUR_DD_SITE> DD_LLMOBS_ENABLED=true DD_LLMOBS_AGENTLESS_ENABLED=true DD_LLMOBS_ML_APP=<YOUR_ML_APP_NAME> ddtrace-run <YOUR-APP>.js
    
  3. (Optional) If using the Datadog Agent, ensure it is running with the following command:

    docker run -d \
        --cgroupns host \
        --pid host \
        -v /var/run/docker.sock:/var/run/docker.sock:ro \
        -v /proc/:/host/proc/:ro \
        -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
        -e DD_API_KEY=<DATADOG_API_KEY> \
        -p 127.0.0.1:8126:8126/tcp \
        -p 127.0.0.1:8125:8125/udp \
        -e DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true \
        -e DD_APM_ENABLED=true \
        gcr.io/datadoghq/agent:latest
    
  4. Before running your application with the Agent, unset the DD_LLMOBS_AGENTLESS_ENABLEDDD_SITE, and DD_API_KEY environment variables.

Uninstallation

You can disable LLM Observability and its auto-instrumentation for Google ADK by removing all DD_LLMOBS environment variables and removing the ddtrace-run command from your application’s initialization.

Support

Need help? Contact Datadog Support.

Further Reading