-
Notifications
You must be signed in to change notification settings - Fork 563
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
base: main
Are you sure you want to change the base?
Conversation
…-and-deprecate-`runtime.uptime`-metric-in-`instrumentation/runtime/runtime.go`-file
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ 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
|
Co-authored-by: Damien Mathieu <42@dmathieu.com>
Co-authored-by: Damien Mathieu <42@dmathieu.com>
Co-authored-by: Damien Mathieu <42@dmathieu.com>
…-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."), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
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
process.runtime.uptime
and made it an asynchronous gauge function.runtime.uptime
metric