Skip to content

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

Open
wants to merge 2 commits into
base: priscila/fix/button/update-cursor-and-aria-for-busy-button
Choose a base branch
from

Conversation

priscilawebdev
Copy link
Member

@priscilawebdev priscilawebdev changed the title Priscila/feat/traces/onboarding/show busy button until trace is received feat: Show busy trace button until trace is received Jun 18, 2025
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 18, 2025
Comment on lines +495 to +505
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
},
});
Copy link
Member Author

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.

Comment on lines +760 to +764
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()}`;
Copy link
Member Author

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')}
Copy link
Member Author

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'

@priscilawebdev priscilawebdev requested review from a team and Abdkhan14 June 18, 2025 09:33
@priscilawebdev priscilawebdev marked this pull request as ready for review June 18, 2025 09:33
@priscilawebdev priscilawebdev requested review from a team as code owners June 18, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants