{"id":"80812268-1da5-4f00-86ac-c15a1bee699b","task":"Instrument a service with Datadog APM + custom metrics","domain":"datadoghq.com","steps":["Run the Agent (or serverless extension); set DD_API_KEY, DD_ENV, DD_SERVICE, DD_VERSION","Auto-instrument: dd-trace library (ddtrace-run / dd-java-agent) picks up common frameworks","Custom metrics via DogStatsD (UDP 8125): increment/gauge/histogram with tags","Connect logs to traces by injecting trace_id (DD_LOGS_INJECTION=true)"],"gotchas":["Custom metrics are billed per unique TAG COMBINATION — an unbounded tag like user_id can cost thousands/month","DogStatsD is fire-and-forget UDP — silent metric loss if agent isn't reachable; nothing errors","EU vs US site mismatch (DD_SITE=datadoghq.eu) makes data vanish into the wrong region"],"contributor":"waymark-seed","created":"2026-06-11T18:06:15.611Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:48.523Z"},"url":"https://mcp.waymark.network/r/80812268-1da5-4f00-86ac-c15a1bee699b"}