Add @ci.pipeline.iid to the DataDog integration

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

We use CI_PIPELINE_IID for versioning our builds and logs to DataDog. Unfortunately, it's difficult to query the pipelines by this id. In the Gitlab UI, we have to toggle the id viewed and scroll through pages to find it. The only id available in the DataDog integration is @ci.pipeline.id. It would be easier for us to correlate the logs with a pipeline in DataDog if we could show and search on a @ci.pipeline.iid field.

Problem to solve

Correlate logs with builds and commits

Proposal

Include @ci.pipeline.iid as a field so it can be displayed and searched on

image

image

taken from image

Intended users

Anyone who needs to correlate logs to pipelines and commits, which presumably includes be any of these...

Feature Usage Metrics

I don't believe this can be tracked within Gitlab.

Does this feature require an audit event?

I don't think so

Edited by 🤖 GitLab Bot 🤖