-
Notifications
You must be signed in to change notification settings - Fork 439
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
internal/civisibility: api refactor and support for telemetry metrics #2963
Conversation
BenchmarksBenchmark execution time: 2024-11-07 16:03:46 Comparing candidate commit 9c8f9e7 in PR branch Found 1 performance improvements and 1 performance regressions! Performance is the same for 57 metrics, 0 unstable metrics. scenario:BenchmarkHttpServeTrace-24
scenario:BenchmarkSetTagString-24
|
1c510d5
to
a423ec3
Compare
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.
I reviewed ONLY the code in internal/telemetry
. Good overall
Other than that I would put a BIG warning on the performance hit your product could take considering the ongoing rework of the telemetry lib is partly done because of that: you can have a look a the usage of telemetry.GlobalClient.Count()
and telemetry.GlobalClient.Record()
all over dd-trace-go to understand that we never really added telemetry metrics anywhere because of the performance impact these functions have.
I understand, I think at test level visibility where we don't have a massive concurrency and very hot paths is acceptable at least for the preview and dogfooding of the library. But, for sure we are looking forward on that rework you mention and to migrate this implementation in the future. |
9c8f9e7
to
f935ab7
Compare
What does this PR do?
This PR contains a complete refactor of the test api to follow and adopt Go conventions, and a complete support of the CI Visibility Telemetry Metrics.
https://app.datadoghq.com/dashboard/d4a-6h6-i8q/test-visibility-libraries-telemetry?fromUser=true&refresh_mode=paused&tpl_var_language_name%5B0%5D=go&from_ts=1730971500000&to_ts=1730982300000&live=false
Motivation
We already have telemetry metrics for all other languages, Go was missing this feature.
Reviewer's Checklist
Unsure? Have a question? Request a review!