Skip to content

[Instrumentation.Process] Update Semantic Conventions to v1.42.0#4602

Merged
Kielek merged 5 commits into
open-telemetry:mainfrom
martincostello:gh-4089
Jun 29, 2026
Merged

[Instrumentation.Process] Update Semantic Conventions to v1.42.0#4602
Kielek merged 5 commits into
open-telemetry:mainfrom
martincostello:gh-4089

Conversation

@martincostello

Copy link
Copy Markdown
Member

Fixes #4089

Changes

Update the process instrumentation to v1.42.0 of the semantic conventions.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

Update the process instrumentation to v1.42.0 of the semantic conventions.

Resolves open-telemetry#4089.
@github-actions github-actions Bot added the comp:instrumentation.process Things related to OpenTelemetry.Instrumentation.Process label Jun 29, 2026
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.21%. Comparing base (df7fb61) to head (0c0c085).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4602      +/-   ##
==========================================
+ Coverage   77.17%   77.21%   +0.03%     
==========================================
  Files         465      465              
  Lines       19394    19423      +29     
==========================================
+ Hits        14968    14997      +29     
  Misses       4426     4426              
Flag Coverage Δ
unittests-Instrumentation.Process 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...elemetry.Instrumentation.Process/ProcessMetrics.cs 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Call out that attribute rename is a breaking change.
macOS always returns 0 for `HandleCount`, so restrict to Linux only.
@martincostello
martincostello marked this pull request as ready for review June 29, 2026 10:03
@martincostello
martincostello requested a review from a team as a code owner June 29, 2026 10:03
Copilot AI review requested due to automatic review settings June 29, 2026 10:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates OpenTelemetry.Instrumentation.Process to align with OpenTelemetry semantic conventions v1.42.0, including the process.cpu.time attribute rename and adding newly recommended process metrics.

Changes:

  • Updated semantic convention version from 1.25.0 to 1.42.0 and renamed process.cpu.statecpu.mode for process.cpu.time.
  • Added new metrics: process.uptime, process.windows.handle.count (Windows only), and process.unix.file_descriptor.count (Linux only).
  • Updated tests, README, and changelog to reflect the new metrics and breaking change.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
test/OpenTelemetry.Instrumentation.Process.Tests/ProcessMetricsTests.cs Updates assertions to include the new metrics and OS-conditional expectations.
src/OpenTelemetry.Instrumentation.Process/README.md Documents semantic conventions v1.42.0 and adds docs for the new metrics.
src/OpenTelemetry.Instrumentation.Process/ProcessMetrics.cs Implements new metrics and updates process.cpu.time attributes per v1.42.0.
src/OpenTelemetry.Instrumentation.Process/CHANGELOG.md Adds an Unreleased entry describing the semantic convention update and breaking change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/OpenTelemetry.Instrumentation.Process/README.md
Comment thread src/OpenTelemetry.Instrumentation.Process/ProcessMetrics.cs
Comment thread src/OpenTelemetry.Instrumentation.Process/README.md
@Kielek
Kielek added this pull request to the merge queue Jun 29, 2026
Merged via the queue into open-telemetry:main with commit a214c70 Jun 29, 2026
75 checks passed
@martincostello
martincostello deleted the gh-4089 branch June 29, 2026 10:55
This was referenced Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:instrumentation.process Things related to OpenTelemetry.Instrumentation.Process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] Update process metrics semantic conventions

3 participants