{
  "slug": "datadog-ci-enables-cloud-run-automatic-apm-instrumentation-f8cb04327b5b",
  "title": "datadog-ci enables Cloud Run automatic APM instrumentation",
  "tools": [
    "datadog-ci"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-11T07:53:18.000Z",
  "announced_at": "2026-09-11T07:53:18.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When instrumenting a Cloud Run service for automatic APM, run `datadog-ci cloud-run instrument` with `--tracing inject` and the project, region, and service. Add `--language <language>` to select Java, Node.js, .NET, Python, Ruby, or PHP; omit it for language detection.",
    "examples": [
      "datadog-ci cloud-run instrument --project <gcp-project> --region <gcp-region> --service <service-name> --tracing inject",
      "datadog-ci cloud-run instrument --project <gcp-project> --region <gcp-region> --service <service-name> --tracing inject --language <java|nodejs|dotnet|python|ruby|php>"
    ],
    "gotchas": [
      "Version: v5.24.0",
      "--project (-p) (required): Google Cloud project hosting the service.",
      "--region (-r) (required): Region hosting the service.",
      "--service / --services (-s) (required): Cloud Run service or services to instrument.",
      "--tracing (required): Set to `inject` to detect the application language and inject a tracer automatically.",
      "--language: Select Java, Node.js, .NET, Python, Ruby, or PHP for tracer injection; omit to use automatic language detection.",
      "Prerequisite: Valid GCP credentials with access to the target Cloud Run service; the docs suggest `gcloud auth application-default login`.",
      "Prerequisite: Expose `DD_API_KEY` in the command environment; `DD_SITE` is also supported and defaults to `datadoghq.com`.",
      "Prerequisite: Install `datadog-ci`; the documented CLI installation options include the `@datadog/datadog-ci` package, standalone binary, or Docker image."
    ]
  },
  "why_it_matters": "Enable automatic APM instrumentation for a Cloud Run deployment.",
  "sources": [
    "https://github.com/DataDog/datadog-ci/releases/tag/v5.24.0",
    "https://docs.datadoghq.com/serverless/libraries_integrations/cli-cloud-run/",
    "https://github.com/DataDog/datadog-ci"
  ],
  "rank": 0.98018,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3-rejudge+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-755de16d3865e730-4:rescue",
    "evidence_hash": "a5eef9e998efe997cfa7b1427ab50514a9ab5a95a7e84d6781c63e618af0b6d3"
  },
  "review": {
    "draft_hash": "db305bea87925562ccb20908900eea6a1407cd44e8cfd352c4075f2ca4424ee0",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:rescue",
    "reason": "Rescue path: first rejected only because the extracted card lacked usage; judged again on the enriched card, 3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.66 (>= 0.6 needed)."
  }
}
