Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Instrumentation.Process] Removed CPU utilization metric process.cpu.utilization. #972

Merged
merged 13 commits into from
Feb 8, 2023

Conversation

Yun-Ting
Copy link
Contributor

@Yun-Ting Yun-Ting commented Feb 6, 2023

Fixes #831.
Related to: #948

Changes

Used static ctor for ProcessMetrics and made Meter static.
Removed/updated CPU utilization related tests.
Added tests to check thread safety.

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #

@Yun-Ting Yun-Ting marked this pull request as ready for review February 6, 2023 22:21
@Yun-Ting Yun-Ting requested a review from a team February 6, 2023 22:21
@codecov
Copy link

codecov bot commented Feb 6, 2023

Codecov Report

Merging #972 (9cf9982) into main (429fdbb) will decrease coverage by 0.11%.
The diff coverage is 80.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #972      +/-   ##
==========================================
- Coverage   68.34%   68.24%   -0.11%     
==========================================
  Files         183      183              
  Lines        7023     7010      -13     
==========================================
- Hits         4800     4784      -16     
- Misses       2223     2226       +3     
Impacted Files Coverage Δ
...entation.Wcf/TelemetryContractBehaviorAttribute.cs 0.00% <0.00%> (ø)
...ry.Instrumentation.Wcf/TelemetryServiceBehavior.cs 0.00% <0.00%> (ø)
...rumentation.Wcf/TelemetryClientMessageInspector.cs 84.14% <85.71%> (+0.81%) ⬆️
...elemetry.Instrumentation.Process/ProcessMetrics.cs 100.00% <100.00%> (ø)
...mentation.Wcf/TelemetryDispatchMessageInspector.cs 86.15% <100.00%> (+0.43%) ⬆️
...y.Instrumentation.Wcf/TelemetryEndpointBehavior.cs 100.00% <100.00%> (ø)

Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@xiang17 xiang17 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Kielek Kielek left a comment

Choose a reason for hiding this comment

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

src/OpenTelemetry.Instrumentation.Process/CHANGELOG.md Outdated Show resolved Hide resolved
@Yun-Ting Yun-Ting changed the title [Instrumentation.Process] Removed CPU utilization metric. [Instrumentation.Process] Removed CPU utilization metric process.cpu.utilization. Feb 7, 2023
@cijothomas
Copy link
Member

@Yun-Ting Could you fix the conflicts, and we are good to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OpenTelemetry.Instrumentation.Process] Multiple provider dispose issue
7 participants