-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(traces): Use new slice quantization from backend #72034
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
Conversation
This uses the quantization from the backend when provided (trace breakdowns), but still uses time for the spans since they don't have quantization.
Bundle ReportChanges will decrease total bundle size by 59.14kB ⬇️
|
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.
Oh looks like this already got merged, flagging a weird conditional just in case still
|
||
const sliceDuration = sliceEnd - sliceStart; | ||
|
||
if (sliceDuration <= 0) { | ||
if (sliceNumberWidth === 0 && sliceNumberWidth === undefined && sliceDuration <= 0) { |
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.
sliceNumberWidth === 0 && sliceNumberWidth === undefined
Isn't that always false?
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.
Right, this should be sliceNumberWidth === 0 || (sliceNumberWidth === undefined && sliceDuration <= 0)
, I must have accidentally undone 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.
This should just be entirely removed anyway actually, we have checks on the backend now, don't need this defensive code anymore.
Summary
This uses the quantization from the backend when provided (trace breakdowns), but still uses time for the spans since they don't have quantization.