Add OpenTelemetry CI/CD semantic conventions support#2863
Merged
Conversation
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update attributes to conform to OpenTelemetry CI/CD conventions
Add OpenTelemetry CI/CD semantic conventions support
Jan 31, 2026
plengauer
requested changes
Jan 31, 2026
… flow Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Contributor
Author
All comments addressed in commit 2086050: Attribute refactoring:
Repository instrumentation improvements:
Deployment changes:
|
Removed cache input from action.yml
Removed duplicate counter handles for pipeline run duration and errors.
Added OpenTelemetry counters and observations for CI/CD pipeline metrics.
Removed the unused function map_github_conclusion_to_cicd_result.
Refactor event triggers for OpenTelemetry action.
Removed cache input option from action.yml
Removed cache input from action.yml configuration.
Comment out push_null case and related metrics creation.
Refactor check run span handling to include additional result attributes based on conclusion status.
Removed redundant error observation logic for workflow failures.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds OpenTelemetry CI/CD semantic conventions by introducing cicd.* attributes/metrics for GitHub Actions workflow/checksuite/job instrumentation, plus a new repository-level instrumentation action and deploy support.
Changes:
- Add
cicd.pipeline.*metrics/attributes (duration/errors/worker/active) across workflow, checksuite, and job instrumentation. - Introduce new repository-level instrumentation action that emits VCS semantic convention metrics.
- Extend deploy action to optionally install the repository-level instrumentation workflow.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| actions/instrument/workflow/main.sh | Adds CI/CD metrics and CI/CD-related span attributes for workflow/job/step processing. |
| actions/instrument/workflow/action.yml | Updates action inputs (adds repository, removes cache). |
| actions/instrument/checksuite/main.sh | Adds CI/CD metrics and CI/CD-related span attributes for check runs. |
| actions/instrument/checksuite/action.yml | Updates action inputs (adds repository, removes cache). |
| actions/instrument/job/inject_and_init.sh | Adds CI/CD metrics/attributes for job-level spans and worker/run activity tracking. |
| actions/instrument/job/decorate_action.sh | Adds CI/CD task attributes on decorated action steps. |
| actions/instrument/repository/main.sh | New repository-level instrumentation to emit VCS metrics from GitHub events. |
| actions/instrument/repository/main.js | Node entrypoint that runs the repository main.sh. |
| actions/instrument/repository/action.yml | New GitHub Action definition for repository-level instrumentation. |
| actions/instrument/deploy/action.yml | Adds optional deployment of repository-level instrumentation workflow. |
Removed job level instrumentation settings and added repository level instrumentation.
Owner
|
!release |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
plengauer
approved these changes
Feb 9, 2026
moflwi
approved these changes
Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenTelemetry CI/CD Semantic Conventions Conformance ✅
This PR implements comprehensive support for OpenTelemetry CI/CD semantic conventions across all instrumentation levels.
Implementation Completed
actions/instrument/workflow/main.sh)cicd.pipeline.*attributes alongsidegithub.actions.*attributescicd.pipeline.run.duration,cicd.pipeline.run.errorscicd.pipeline.namecicd.pipeline.resultwith proper valuesactions/instrument/checksuite/main.sh)cicd.*attributes where applicablecicd.pipeline.run.durationmetriccicd.pipeline.nameactions/instrument/job/inject_and_init.sh)cicd.*attributes (pipeline.name, task.name, task.type)actions/instrument/repository/main.shfor repository metrics collectionvcs.contributor.count(contributor metrics)vcs.ref.count(branches/tags count)vcs.change.count(PRs/issues count by state)vcs.change.time_to_merge(PR merge time)action.ymlfor the repository instrumentationactions/instrument/deploy/action.yml)Key Changes from Review
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.