Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By datadog-labs Verified Orgv1.1.0In 1 marketplace
Surfaces Datadog best practices and telemetry guidance at coding time, so your agent considers observability from the start.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Datadog sitedd_site
Your organization's Datadog site -- see the "Site Parameter" field at https://docs.datadoghq.com/getting_started/site/#access-the-datadog-site (e.g. datadoghq.com, datadoghq.eu).
string
Datadog API keydd_api_key
Identifies your Datadog organization and authenticates API requests.
Sensitivestring
Datadog Application keydd_app_key
Used together with the API key to authenticate programmatic API access.
Sensitivestring
Enable on-commit telemetry reviewenable_on_commit_telemetry_review
Run an agentic telemetry review after commits, checking the diff for observability gaps or violations of best practices. Findings are surfaced back into your session.
booleandefault false
Enable Datadog resource suggestionsenable_datadog_resource_suggestions
After commits, nudge the agent to consider suggesting relevant Datadog resource creation
booleandefault false
A Claude Code plugin that helps your agent add high-quality logs, metrics, and traces to source code.
Coding agents struggle to add useful and well-structured observability to source code. This plugin hooks into your Claude Code session to surface Datadog telemetry best practices while your agent works. At session start and on relevant file edits, it nudges the agent to fetch relevant observability guidance and to apply it when planning features or implementing tasks.
Datadog Standard Role as its Owner Rolegit CLI available on PATHclaude CLI available on PATH (needed if you enable on-commit telemetry review)Add the marketplace and install the plugin, filling in your Datadog site/credentials:
claude plugin marketplace add datadog-labs/datadog-code-analysis
claude plugin install datadog-code-analysis@datadog-code-analysis \
--config dd_site=<your datadog site e.g. datadoghq.com> \
--config dd_api_key=<your-api-key> \
--config dd_app_key=<your-app-key> \
--config enable_on_commit_telemetry_review=<true or false> \
--config enable_datadog_resource_suggestions=<true or false>
Or install interactively from within a Claude Code session:
/plugin marketplace add datadog-labs/datadog-code-analysis
/plugin install datadog-code-analysis@datadog-code-analysis
Auto-updates: Enable auto-update so Claude Code automatically picks up plugin improvements. Run /plugin, select the Marketplaces tab, select datadog-code-analysis, then select Enable auto-update.
Once installed, the plugin runs automatically in the background during your Claude Code sessions. If you've configured on commit telemetry review or datadog resource suggestions:
Two slash commands are also available to review the plugin's impact on your work:
/impact-preview [number of sessions]: scans recent Claude Code sessions that did
not use the plugin and estimates where its current telemetry guidance might have been
relevant./impact-review [number of sessions]: scans recent Claude Code sessions that did
use the plugin and summarizes where and how its telemetry guidance affected the
implementation.Both commands analyze local session transcripts only and print their report directly in your session. At the end of each report, you're asked whether you're willing to share the resulting counts with Datadog -- no prompts, file paths, code, or session content are ever sent, and nothing is sent unless you explicitly agree.
The plugin reads/writes outside your project directory. Please ensure your session has read/write access to the following:
~/.dd-code-analysis/ -- plugin home directory. Holds per-session plugin state, like
whether the session loaded best practices and which best practices were loaded.$TMPDIR, typically /tmp) -- holds a per-session debug log
(dd-code-analysis-plugin-<session_id>.log) and, during on-commit telemetry review,
a short-lived diff file (dd-code-analysis-plugin-<session_id>-review-*.diff) that's
deleted after the review runs.The plugin also makes outbound requests to Datadog to fetch telemetry best practices and
send the usage telemetry described below. Please ensure your session can reach
https://api.<your-datadog-site>.
If you're running Claude Code with the sandboxed Bash tool,
you may need to explicitly grant access to these locations, e.g. in ~/.claude/settings.json
(the OS temp directory is writable by default, so only ~/.dd-code-analysis and the Datadog
API domain need to be added):
{
"sandbox": {
"filesystem": {
"allowWrite": ["~/.dd-code-analysis"]
},
"network": {
"allowedDomains": ["api.<your-datadog-site>"]
}
}
}
The plugin sends basic usage telemetry events back to Datadog. No code content, session content, or user identifiers are sent:
npx claudepluginhub datadog-labs/datadog-code-analysis --plugin datadog-code-analysisBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground