datadog-ci tag accepts comma-separated --level values
Introduced 2026-07-06 · score 0.94
HOW TO USE IT
When tagging pipeline and job spans in a CI Visibility run, invoke `datadog-ci tag` once with `--level pipeline,job` and the desired tags.
DATADOG_SITE=<site> datadog-ci tag --level pipeline,job --tags <tag1> --tags <tag2>WHY THIS HELPS
Tag software delivery events at the pipeline and job levels in one invocation.
REQUIREMENTS AND LIMITATIONS
- Version: v5.21.0
- --level: Selects the span level to tag. The v5.21.0 release note documents comma-separated values, including `pipeline,job`.
- --tags: Tag value to add; repeat the option for additional tags.
- DATADOG_SITE (required): Datadog site; supply it as an environment variable.
- DATADOG_API_KEY (required): Valid Datadog API key supplied as an environment variable.
- Prerequisite: Install datadog-ci CLI version 1.15.0 or later.
- Prerequisite: Set valid `DATADOG_API_KEY` and `DATADOG_SITE` environment variables.
FIRST-PARTY EVIDENCE
- https://github.com/DataDog/datadog-ci/releases/tag/v5.21.0
- https://docs.datadoghq.com/continuous_integration/pipelines/custom_tags_and_measures/
Check the installed version and the source before using it. Entry JSON