Skip to content

[Instrumentation.Process] Adjust metrics and attributes to Sem. Conv. 1.25.0#1643

Merged
Kielek merged 8 commits into
open-telemetry:mainfrom
Kielek:instrumentation-process-sem-conv-1.25.0
Apr 12, 2024
Merged

[Instrumentation.Process] Adjust metrics and attributes to Sem. Conv. 1.25.0#1643
Kielek merged 8 commits into
open-telemetry:mainfrom
Kielek:instrumentation-process-sem-conv-1.25.0

Conversation

@Kielek

@Kielek Kielek commented Apr 9, 2024

Copy link
Copy Markdown
Member

Fixes #1638.

Changes

  • Following changes related to Semantic Convention v1.25.0
    • process.cpu.time metric attribute renamed from state to process.cpu.state,
    • Metric descriptions fixed for process.memory.usage and process.memory.virtual,
    • Metric process.threads renamed to process.thread.count
      (its unit changed from {threads} to {thread}.

process.cpu.count is not part of the semantic convention (and it never was). It is still produced.
Also not all metrics defined by sem.conv. are covered.

For significant contributions please make sure you have completed the following items:

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • [ ] Design discussion issue #
  • [ ] Changes in public API reviewed

@github-actions
github-actions Bot requested a review from Yun-Ting April 9, 2024 11:54
@codecov

codecov Bot commented Apr 9, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (71655ce) to head (08571df).
Report is 184 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             main     #1643       +/-   ##
============================================
+ Coverage   73.91%   100.00%   +26.08%     
============================================
  Files         267         2      -265     
  Lines        9615        55     -9560     
============================================
- Hits         7107        55     -7052     
+ Misses       2508         0     -2508     
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 Coverage Δ
...elemetry.Instrumentation.Process/ProcessMetrics.cs 100.00% <100.00%> (ø)

... and 261 files with indirect coverage changes

@Kielek Kielek changed the title Instrumentation process sem conv 1.25.0 [Instrumentation.Process] Adjust metrics and attributes to Sem. Conv. 1.25.0 Apr 9, 2024
@Kielek Kielek added the comp:instrumentation.process Things related to OpenTelemetry.Instrumentation.Process label Apr 9, 2024
@Kielek

Kielek commented Apr 9, 2024

Copy link
Copy Markdown
Member Author

@kmcclellan, FYI

@Kielek
Kielek marked this pull request as ready for review April 9, 2024 12:06
@Kielek
Kielek requested a review from a team April 9, 2024 12:06
Comment thread src/OpenTelemetry.Instrumentation.Process/CHANGELOG.md Outdated
Co-authored-by: Mateusz Łach <mateusza@splunk.com>
@Kielek

Kielek commented Apr 11, 2024

Copy link
Copy Markdown
Member Author

@Yun-Ting, @vishweshbankwar, could you please check?

| `s` | ObservableCounter | `Double` | state | user, system |
| Units | Instrument Type | Value Type | Attribute Key(s) | Attribute Values |
|-------|-------------------|------------|-------------------|------------------|
| `s` | ObservableCounter | `Double` | process.cpu.state | user, system |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not a blocking comment but spec defines this as Counter and we have it as ObservableCounter. I do not know the history of this, @Yun-Ting any idea?

@vishweshbankwar vishweshbankwar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Kielek
Kielek merged commit aae94e3 into open-telemetry:main Apr 12, 2024
@Kielek
Kielek deleted the instrumentation-process-sem-conv-1.25.0 branch April 12, 2024 18:07
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.

Process Semantic Conventions Discrepancies

4 participants