-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit focused events to session-captured trace IDs (#217)
Adjust the behavior of Traces and Errors to show events which are associated with a known-local trace ID. If no trace IDs are known, assume all events should be present instead.
- Loading branch information
Showing
13 changed files
with
150 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { type ComponentProps } from 'react'; | ||
|
||
export default function Badge(props: Omit<ComponentProps<'span'>, 'className'>) { | ||
return ( | ||
<span className="bg-primary-800 inline-flex items-center rounded-md px-1.5 py-0.5 text-xs font-medium" {...props} /> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/overlay/src/integrations/sentry/components/EventBreadcrumbs.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/overlay/src/integrations/sentry/components/HiddenItemsButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { type ComponentProps } from 'react'; | ||
|
||
export default function HiddenItemsButton({ | ||
itemCount, | ||
...props | ||
}: Omit<ComponentProps<'button'>, 'className' | 'children'> & { | ||
itemCount: number; | ||
}) { | ||
return ( | ||
<button | ||
className="bg-primary-900 hover:bg-primary-800 text-primary-200 flex w-full cursor-pointer items-center gap-x-4 px-6 py-2 text-sm" | ||
{...props} | ||
> | ||
<strong> | ||
{itemCount.toLocaleString()} {itemCount !== 1 ? 'items were' : 'item was'} hidden from different sessions. | ||
</strong> | ||
<button className="hover:bg-primary-900 border-primary-500 rounded border px-1.5 py-0.5">Reveal</button> | ||
</button> | ||
); | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/overlay/src/integrations/sentry/components/SdkList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/overlay/src/integrations/sentry/data/useSentryHelpers.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { useContext } from 'react'; | ||
import sentryDataCache from './sentryDataCache'; | ||
import { SentryEventsContext } from './sentryEventsContext'; | ||
|
||
export const useSentryHelpers = () => { | ||
useContext(SentryEventsContext); | ||
|
||
return { | ||
isLocalToSession: (traceId: string) => { | ||
return sentryDataCache.isTraceLocal(traceId); | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.