Datadog APM Test Agent

1.46.0 · active · verified Fri Apr 10

The Datadog APM Test Agent is a Python-based utility that simulates the Datadog Agent for local testing and development of APM client libraries. It allows developers to capture, inspect, and validate traces, snapshots, and other observability data without requiring a full Datadog Agent setup. The current version is 1.46.0, with a frequent release cadence, often multiple times a month, for new features and bug fixes.

Warnings

Install

Imports

Quickstart

To quickly start the Datadog APM Test Agent, simply run `ddapm-test-agent` in your terminal. For LLM Observability features, especially with Claude Code, use `lapdog start`. Ensure your APM client library is configured to point to the test agent's default host (localhost) and port (e.g., 8126 for traces) via environment variables or configuration.

# Start the basic test agent
ddapm-test-agent

# Or, for LLM observability with Claude hooks
lapdog start

# Your APM client library (e.g., dd-trace-py) should be configured
# to send traces to the agent's default port (e.g., localhost:8126).
# Example for dd-trace-py (ensure DD_AGENT_HOST and DD_TRACE_AGENT_PORT are set appropriately)
# export DD_AGENT_HOST=localhost
# export DD_TRACE_AGENT_PORT=8126
# python your_instrumented_app.py

view raw JSON →