-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
chore(explore) Remove links to traces page from explore on old spans and traces #105540
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: master
Are you sure you want to change the base?
chore(explore) Remove links to traces page from explore on old spans and traces #105540
Conversation
|
@sentry review |
|
@sentry review |
| <Tooltip | ||
| showUnderline | ||
| isHoverable | ||
| disabled={!queryString} |
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.
Tooltip disabled check always evaluates to false
The disabled={!queryString} check never works as intended because queryString is a MutableSearch object, not a string. Objects are always truthy in JavaScript, so !queryString is always false. The comparable implementation in tracesTable/fieldRenderers.tsx correctly uses search.formatString() to get a string before the check. The intended behavior to disable the tooltip when no meaningful query filters exist never triggers.
This PR updates the linking from the spans and traces table from the Explore -> Traces page. If the span or trace is older than 30 days we remove the link, and add a tooltip with a link to similar spans or traces.
Ticket: EXP-646