-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(suspect-spans): Add ops filter to spans tab #29640
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 change adds a filter dropdown to the spans page that can be used to filter the specific span ops. This is limited to the top 20 most frequent span ops at the moment.
| }; | ||
| } | ||
|
|
||
| const spanOp = decodeScalar(location.query.spanOp); |
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.
Not for this PR, but as an aside, looking at how many of these we end up doing, I feel like we should have a useLocation and then have useQueryField('QueryField.SPAN_OP') eventually, with enums to ensure we don't have typos selecting from the query 🤔
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.
That makes sense to me, we can follow up with this later.
| <Radio | ||
| radioSize="small" | ||
| checked={spanOp.op === currentOp} | ||
| onChange={() => {}} |
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.
Hmm I didn't know we would do a fake radio and make the whole row clickable but that's probably better considering a dropdown is ephemeral. I'm guessing we do this elsewhere?
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.
We actually have this pattern for the ops breakdown filter already. I had to add this empty onChange handler to make a warning go away about the radio button missing a change handler.
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.
Yeah it's fine, the empty onChange is what caught my eye, radios can have small click areas anyway.
This change adds a filter dropdown to the spans page that can be used to filter
the specific span ops. This is limited to the top 20 most frequent span ops at
the moment.