Skip to content

Does Datadog Support adding custom tags to Job Spans/Pipeline Traces from the API? #1630

@mrk-han

Description

@mrk-han

I need to add a custom tag to a previously existing job execution.

I am already using datadog-ci to upload jobs to DD, but I want to run analysis on the job traces then POST back to that same Job Event with a custom tag to help sort the jobs within datadog

Right now, I'm trying to see if it's possible to do this with the datadog API directly because the datadog-ci tool won't be available from the context where I need to send the request.

I'm using https://docs.datadoghq.com/api/latest/ci-visibility-pipelines/#search-pipelines-events to get information about the Job, then sending as much info as I can find to POST pipeline event (option 3) https://docs.datadoghq.com/api/latest/ci-visibility-pipelines/#send-pipeline-event

Right now, it's adding the tag correctly but creating a new pipeline execution instead of editing the previous pipeline execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    software-deliveryRelated to [coverage, deployment, dora, junit, measure, tag, trace]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions