dd-git-tagging

Installation
SKILL.md

Datadog Git metadata tagging

Source code integration has two halves: connecting the Git provider to Datadog, and tagging telemetry with the commit and repository it came from. This skill does the second half for one service. A service counts as tagged when its spans carry both git.commit.sha and git.repository_url.

Inputs: the service name and, optionally, the env. Use them if the caller passed them. Otherwise read DD_SERVICE and DD_ENV from the project's config; with several services and no name given, ask which one.

Rules

  • Change only how the two Git values reach the service. No unrelated edits, and no notes or docs files: explanations go in the report.
  • Compute both values when the service builds or launches, never as literals: a committed SHA is wrong after the next commit.
  • Strip credentials from the repository URL so a user:token@ never lands in an image or in telemetry.
  • Done means the check below passes. If you can't run or deploy the service, report the changes and how to confirm them.

1. Check

python3 -I -B <this-skill-dir>/scripts/check_git_tags.py --service <service> [--env <env>] --json
Installs
10
GitHub Stars
186
First Seen
6 days ago