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

Runtime metrics support for Go-1.20 #301

Merged
merged 10 commits into from
Dec 21, 2022
Merged

Runtime metrics support for Go-1.20 #301

merged 10 commits into from
Dec 21, 2022

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Oct 4, 2022

Description:

Go-1.20 has new CPU timing metrics: https://go-review.googlesource.com/c/go/+/404307 and float64-valued metrics.

This updates the runtime to avoid a lot of hacky special cases, generally it reverses the logic previously used. Now, there is a hard-coded list of known metrics that is expected to cover all present and past versions of the Go runtime.

Link to tracking Issue:
open-telemetry/opentelemetry-go-contrib#316

Testing: 1.18, 1.19, 1.20. Improved testing.

Documentation: Updated.

@jmacd jmacd marked this pull request as ready for review December 20, 2022 20:23
Copy link
Contributor

@kristinapathak kristinapathak left a comment

Choose a reason for hiding this comment

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

This is awesome! One question and a small comment fix.

lightstep/instrumentation/runtime/builtin.go Outdated Show resolved Hide resolved
lightstep/instrumentation/runtime/defs.go Show resolved Hide resolved
Copy link
Contributor

@jaronoff97 jaronoff97 left a comment

Choose a reason for hiding this comment

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

The translations here are super interesting, good stuff here :D

@jmacd jmacd merged commit 91eb575 into main Dec 21, 2022
@jmacd jmacd deleted the jmacd/runtime120 branch December 21, 2022 18:40
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.

3 participants