-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conversation
This replaces the place holder for the spans tab.
size-limit report
|
7bf7d08
to
cb90b1e
Compare
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.
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 |
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.
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.
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.
Will do that in a follow up
> | ||
{({suspectSpans, isLoading, error, pageLinks}) => { | ||
if (error) { | ||
setError(error); |
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.
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'), |
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.
Occurrences / count / frequency are all still a bit confusing I think, doesn't matter for this PR we can discuss this offline.
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.
I think the exact wording is something we'll need to discuss as these concepts are all very similar and can be confusing.
This replaces the place holder for the spans tab.