Skip to content
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

feat(suspect-spans): Add suspect spans tab page #29453

Merged
merged 5 commits into from
Oct 22, 2021
Merged

Conversation

Zylphrex
Copy link
Member

This replaces the place holder for the spans tab.

This replaces the place holder for the spans tab.
@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2021

size-limit report

Path Base Size (7979ae1) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.75 KB 52.75 KB +0.01% 🔺
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.89 KB 70.89 KB 0%

Copy link
Member

@k-fish k-fish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's gooo 🔥

I've checked this out locally and have a couple product things to discuss, we can chat about it offline though.

}

if (!suspectSpans?.length) {
// TODO: empty state
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Was just coming to look for this but I see it's already a TODO, I'd just actually put a EmptyStateWarning or something basic until we figure out what empty state we actually want.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do that in a follow up

>
{({suspectSpans, isLoading, error, pageLinks}) => {
if (error) {
setError(error);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note (doesn't really matter in this PR):
Instead of having to pass this in, I've also made the pageError context now along with an alert. You can just put the provider and alert in the topmost level, and use the hook here without needing it in props anymore.

},
{
prefix: t('Total'),
label: t('Occurrences'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Occurrences / count / frequency are all still a bit confusing I think, doesn't matter for this PR we can discuss this offline.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the exact wording is something we'll need to discuss as these concepts are all very similar and can be confusing.

@Zylphrex Zylphrex merged commit 19a2dde into master Oct 22, 2021
@Zylphrex Zylphrex deleted the feat/suspect-spans-tab branch October 22, 2021 18:27
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants