-
Notifications
You must be signed in to change notification settings - Fork 16
feat!(data-pipeline): include reason for chunks dropped telemetry #1449
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?
feat!(data-pipeline): include reason for chunks dropped telemetry #1449
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1449 +/- ##
==========================================
+ Coverage 71.30% 71.32% +0.02%
==========================================
Files 413 416 +3
Lines 66161 66970 +809
==========================================
+ Hits 47174 47768 +594
- Misses 18987 19202 +215
🚀 New features to boost your workflow:
|
BenchmarksComparisonBenchmark execution time: 2026-01-16 19:23:16 Comparing candidate commit 25be86c in PR branch Found 4 performance improvements and 3 performance regressions! Performance is the same for 50 metrics, 2 unstable metrics. scenario:benching serializing traces from their internal representation to msgpack
scenario:credit_card/is_card_number/378282246310005
scenario:credit_card/is_card_number/x371413321323331
scenario:credit_card/is_card_number_no_luhn/x371413321323331
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. |
bantonsson
left a comment
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.
The change looks good, but there are new lines missing test coverage. Also, how do we deal with semver? This is a breaking change API wise.
| if data.chunks_dropped > 0 { | ||
| let key = self.metrics.get(metrics::MetricKind::ChunksDropped); | ||
| if data.chunks_dropped_p0 > 0 { | ||
| let key = self.metrics.get(metrics::MetricKind::ChunksDroppedP0); |
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.
These lines seem to miss coverage
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.
Good catch, added some more tests.
What does this PR do?
When we drop trace chunks due to a problem we emit telemetry, but we weren't including the reason tags. We also were not emitting chunks dropped telemetry for chunks dropped for valid sampling reasons. This PR addresses both issues. Now telemetry should have one of the following reasons tagged for
trace_chunks_dropped:p0_dropserialization_errorsend_failureMotivation
More accurate telemetry is good
Additional Notes
breaking change: The telemetry module in
libdd-data-pipelinewaspub. It should bepub(crate).How to test the change?
Existing tests have been updated.