-
Notifications
You must be signed in to change notification settings - Fork 16
[APMSP-1584] Refactor health metrics #1433
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
base: main
Are you sure you want to change the base?
Conversation
| debug_assert!( | ||
| trace_chunks > 0, | ||
| "SendResult::success called with zero trace chunks" | ||
| ); |
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 originally thought it would be a "bug" to have 0 traces, but some tests were failing sending empty payloads. I don't know if it's just the tests or if it's sementically valid
BenchmarksComparisonBenchmark execution time: 2026-01-07 13:11:30 Comparing candidate commit bc805f6 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 57 metrics, 2 unstable metrics. CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
Group 15
Group 16
Group 17
Group 18
Group 19
BaselineOmitted due to size. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1433 +/- ##
==========================================
+ Coverage 71.23% 71.32% +0.09%
==========================================
Files 411 412 +1
Lines 65788 65990 +202
==========================================
+ Hits 46863 47069 +206
+ Misses 18925 18921 -4
🚀 New features to boost your workflow:
|
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-apple-darwin
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-apple-darwin
x86_64-unknown-linux-gnu
|
What does this PR do?
Refactor health metrics emission via common API.
Motivation
Logic was duplicated and would have required to be duplicated again if another usecase arose. Now the core logic can be integrated elsewhere more easiely.
Additional Notes
I don't have the full context of this part of the code, I may have blindspots or problems in the implementation.
How to test the change?
I (mostly AI) added a bunch of tests (maybe too much of them even ?) to validate the changes.