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

Create a new metric process.runtime.uptime and deprecate runtime.uptime metric in instrumentation/runtime/runtime.go file #5317

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

AkhigbeEromo
Copy link
Contributor

@AkhigbeEromo AkhigbeEromo requested a review from a team March 19, 2024 23:12
…-and-deprecate-`runtime.uptime`-metric-in-`instrumentation/runtime/runtime.go`-file
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
instrumentation/runtime/runtime.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 61.3%. Comparing base (8c7c4de) to head (eb247c9).

❗ Current head eb247c9 differs from pull request most recent head d43be19. Consider uploading reports for the commit d43be19 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #5317     +/-   ##
=======================================
- Coverage   62.3%   61.3%   -1.1%     
=======================================
  Files        189     186      -3     
  Lines      11575   11261    -314     
=======================================
- Hits        7221    6905    -316     
- Misses      4145    4156     +11     
+ Partials     209     200      -9     
Files Coverage Δ
instrumentation/runtime/runtime.go 0.0% <0.0%> (ø)

... and 10 files with indirect coverage changes

AkhigbeEromo and others added 3 commits March 20, 2024 19:39
…-and-deprecate-`runtime.uptime`-metric-in-`instrumentation/runtime/runtime.go`-file
…-and-deprecate-`runtime.uptime`-metric-in-`instrumentation/runtime/runtime.go`-file
@@ -111,6 +111,15 @@ func (r *runtime) register() error {
uptime, err := r.meter.Int64ObservableCounter(
"runtime.uptime",
metric.WithUnit("ms"),
metric.WithDescription("Milliseconds since application was initialized. Deprecated metric. Use `process.runtime.runtime` instead."),
Copy link
Member

Choose a reason for hiding this comment

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

@open-telemetry/go-approvers what do you all think about this way of deprecating/renaming a metric?
It does mean for one release we emit two metrics.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there anything you would like me to change @dmathieu

…-and-deprecate-`runtime.uptime`-metric-in-`instrumentation/runtime/runtime.go`-file
…-and-deprecate-`runtime.uptime`-metric-in-`instrumentation/runtime/runtime.go`-file
@AkhigbeEromo AkhigbeEromo requested a review from dmathieu March 29, 2024 22:02
@AkhigbeEromo
Copy link
Contributor Author

Hello @dmathieu, any update on this PR?

Or is there anything you would like me to change?

…-and-deprecate-`runtime.uptime`-metric-in-`instrumentation/runtime/runtime.go`-file
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.

2 participants