-
Notifications
You must be signed in to change notification settings - Fork 421
feat: Added partial granularity tracking metrics #3566
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
feat: Added partial granularity tracking metrics #3566
Conversation
bizob2828
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.
These metrics should only be incremented if the trace is partial
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3566 +/- ##
===========================================
+ Coverage 81.27% 97.68% +16.40%
===========================================
Files 417 428 +11
Lines 55275 56605 +1330
Branches 1 1
===========================================
+ Hits 44927 55293 +10366
+ Misses 10348 1312 -9036
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bizob2828
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.
one small test change
| const helper = require('#testlib/agent_helper.js') | ||
| const SpanEvent = require('#agentlib/spans/span-event.js') | ||
|
|
||
| test('Partial Granularity metrics with Full Granularity settings', async (t) => { |
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.
full granularity tests are in span-events.test.js, we don't need another file for this
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.
Got it. I'll move them. Sorry about that.
Description
We need to add
Supportability/DistributedTrace/PartialGranularity/<partial granularity type>/Span/Instrumentedmetric which represents the total number of span events that were instrumented and would have been recorded (if the trace was full granularity) before partial granularity dropped them.And we need to add
Supportability/DistributedTrace/PartialGranularity/<partial granularity type>/Span/Keptmetric that represents the total number of span events that were recorded and kept by partial granularity (aka that were not dropped).How to Test
Run
npm run testRelated Issues
Partially closes #3453 (we still need to add compact metrics in a separate PR at a future date).