-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat: Show busy trace button until trace is received #93794
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: priscila/fix/button/update-cursor-and-aria-for-busy-button
Are you sure you want to change the base?
Conversation
const dataset = useExploreDataset(); | ||
const tracesQuery = useTraces({ | ||
enabled: received, | ||
limit: 1, | ||
dataset, | ||
sort: 'timestamp', | ||
refetchInterval: query => { | ||
const trace = query.state.data?.[0]?.data?.[0]?.trace; | ||
return trace ? false : 5000; // 5s | ||
}, | ||
}); |
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.
Similar to what's used here and by the table component.
const params = new URLSearchParams(window.location.search); | ||
params.set('table', Tab.TRACE); | ||
params.set('query', `trace:${traceId}`); | ||
params.delete('guidedStep'); | ||
window.location.href = `${window.location.pathname}?${params.toString()}`; |
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.
with the new changes, there was a glitch and window.location.href
solves the issue
}} | ||
> | ||
{t('Take me to traces')} | ||
{t('Take me to my trace')} |
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.
since we are now setting trace to the query, this can be named 'take me to my trace', similar to 'take me to my profiling'
closes https://linear.app/getsentry/issue/TET-589/take-me-to-traces-button-should-should-wait-for-the-first-event-and
Preview
Screen.Recording.2025-06-18.at.10.29.55.mov