-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Implement max trace size parameter #7810
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
Signed-off-by: Parship Chowdhury <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7810 +/- ##
==========================================
- Coverage 95.53% 95.50% -0.04%
==========================================
Files 307 307
Lines 15911 15956 +45
==========================================
+ Hits 15201 15239 +38
- Misses 558 562 +4
- Partials 152 155 +3
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:
|
cmd/jaeger/internal/extension/jaegerquery/internal/querysvc/v2/querysvc/service_test.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Yuri Shkuro <[email protected]> Signed-off-by: Parship Chowdhury <[email protected]>
84d5c03 to
5694c37
Compare
|
closed and reopened to re-run some failing checks. |
2. remove same code at aggregator.go 3. remove skipCurrentTrace and do an early exit from mergeTraces if the current count is already at max 4. remove redundant checks at aggregator.go Signed-off-by: Parship Chowdhury <[email protected]>
2. use range with .All() in copySpansUpToLimit 3. argument order to (dest, src, ...) Signed-off-by: Parship Chowdhury <[email protected]>
Signed-off-by: Parship Chowdhury <[email protected]>
df74359 to
5b73044
Compare
| } | ||
|
|
||
| // add a warning to the first span of the trace | ||
| func (qs QueryService) addTruncationWarning(trace ptrace.Traces) { |
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.
isn't this what jptrace.IsTraceTruncated() already checking for? Why do the same thing twice?
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.
They are checking different attributes for different purposes - one is an internal boolean flag, the other is a user-facing message.
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.
why do we need both?
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.
Ok simplified it.
Removed @jaeger@truncated boolean marker, IsTraceTruncated() and addTruncationWarning()
Changed the markTraceTruncated() to directly adds the warning
Co-authored-by: Yuri Shkuro <[email protected]> Signed-off-by: Parship Chowdhury <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]> Signed-off-by: Parship Chowdhury <[email protected]>
…f copySpansUpToLimit, fix early return Signed-off-by: Parship Chowdhury <[email protected]>
Signed-off-by: Parship Chowdhury <[email protected]>
Metrics Comparison SummaryTotal changes across all snapshots: 0 Detailed changes per snapshotsummary_metrics_snapshot_cassandra📊 Metrics Diff SummaryTotal Changes: 0
|
|
bummer, merge conflicts, please resolve |
Which problem is this PR solving?
Description of the changes
max_trace_sizeconfiguration parameter to limit spans per traceHow was this change tested?
Checklist
jaeger:make lint testjaeger-ui:npm run lintandnpm run test