Releases: DataDog/dd-apm-test-agent
Releases · DataDog/dd-apm-test-agent
1.45.0
New Features
- Adds a
--enable-claude-code-hooksoption to insert the test agent's Claude Code hooks on startup. - Adds a new
lapdogstartup command which starts up the test agent with Claude Code hooks enabled. - Updates the suite of
lapdogcommands:lapdog startnow launches the test agent with--enable-claude-code-hooksin the background.lapdog stopstops that test agent instancelapdog statuslogs the current status (url, pid, and logs file) of the lapdog instancelapdog claudestarts a claude session through lapdog, starting lapdog locally if not started bylapdog start
1.44.0
New Features
- claude hooks: Enrich tool and subagent span names with human-readable intent extracted from tool input (e.g., "Read - claude_hooks.py" instead of "Read"). Adds
tool_nametag for faceting. - Add
ddapm-test-agent-runCLI launcher and Javascript fetch interceptor for routing Claude Code API calls through the test agent proxy. This replaces theANTHROPIC_BASE_URLapproach which can be overridden by managed settings. Usage:ddapm-test-agent-run claude.
Security Issues
- Restrict CORS Access-Control-Allow-Origin from wildcard (*) to an allowlist of Datadog UI domains and localhost to prevent arbitrary websites from reading local trace data.
Bug Fixes
- Update claude setup hooks to avoid some failure cases:
- Check if test agent is already running before attempting to start a new container.
- Add port conflict detection to warn users when port 8126 is occupied by the Datadog Agent or another process.
- Move ANTHROPIC_BASE_URL from settings.json to a per-session environment variable to prevent Claude from breaking if the test agent stops between sessions.
1.43.0
New Features
- OTLP: Add support for OpenTelemetry Protocol (OTLP) traces via HTTP endpoint
v1/traceson port 4318 and GRPC server on port 4317. The endpoint accepts both application/json and application/x-protobuf content types. Session endpoint/test/session/tracesallows retrieval of captured traces for validation. - Add a new
meta_events_is_valid_jsoncheck that validatesmeta.eventscontains a valid JSON array when present. Normalizemeta.eventsattribute key ordering during snapshot generation and comparison to ensure snapshot tests pass regardless of the iteration order of tracer-side hash maps.
1.41.0
New Features
- Add Claude Code hooks integration that receives Claude Code lifecycle events and assembles them into LLM Observability traces, enabling visibility into Claude Code sessions through the web UI.
Bug Fixes
- Include metadata field in LLM Observability event platform responses.
1.40.0
New Features
- Forwards LLM Observability span events to Datadog by default. Uses either the configured
--agent-urlor the--dd-siteand--dd-api-keycommand-line arguments. This can be disabled by setting theDISABLE_LLMOBS_DATA_FORWARDINGenvironment variable or--disable-llmobs-data-forwardingcommand-line argument to true. - Add LLM Observability Event Platform API endpoints for local development. Supports span querying, filtering, trace retrieval, and facet endpoints to enable the Datadog UI to display locally collected LLMObs spans.
- LLM Observability: Add filter query support to facet_info and facet_range_info endpoints. Facet values and ranges can now be computed from filtered spans using the search.query parameter.
1.39.0
New Features
- Add support for controlling the test agent version via the TEST_AGENT_VERSION environment variable. The version is returned in the /info endpoint response.
Bug Fixes
- Ignores the Transfer-Encoding header in proxied vcr requests, forwarding this header can lead to failures in downstream services.
1.38.0
Deprecation Notes
- VCR has been removed as a dependency, and instead JSON cassettes are produced. Legacy VCR cassettes are converted to JSON on first use, and the old VCR cassettes are removed. This functionality will be removed in ddapm-test-agent==2.0.0, at which point only JSON cassettes will be written and read.
v1.37.0
New Features
- Add /evp_proxy/v2/api/v2/exposures endpoint to collect feature flag exposures requests.
- Adds a new web ui that provides a dashboard for inspecting agent configuration, viewing received requests, exploring traces and snapshots, and managing tracer-flare and remote configuration.
Bug Fixes
- otlp: Fix OTLP endpoint response format for logs and metrics to return proper protobuf content type and serialized response body for HTTP requests.
New Contributors
- @khanayan123 made their first contribution in #251
1.36.0
1.35.0
New Features
- Add support for running the test agent over a Windows named pipe.
- vcr: Adds support for specifying a list of custom providers in the
--vcr-provider-mapflag orVCR_PROVIDER_MAPenvironment variable. The list should take the form ofprovider1=http://provider1.com/,provider2=http://provider2.com/. - vcr: Adds support for specifying a list of headers to ignore when recording VCR cassettes in the
--vcr-ignore-headersflag orVCR_IGNORE_HEADERSenvironment variable. The list should take the form ofheader1,header2,header3.