From 93717b80d552c8620bd7a63dbdf3dd729f89ebd0 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Sat, 30 Mar 2024 09:06:31 +0000 Subject: [PATCH] feat: display sentry levels when capturing messages --- frontend/src/lib/components/Errors/ErrorDisplay.tsx | 5 ++++- frontend/src/loadPostHogJS.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/Errors/ErrorDisplay.tsx b/frontend/src/lib/components/Errors/ErrorDisplay.tsx index cfac9ef9d21a9..1b133f5a4f749 100644 --- a/frontend/src/lib/components/Errors/ErrorDisplay.tsx +++ b/frontend/src/lib/components/Errors/ErrorDisplay.tsx @@ -124,6 +124,7 @@ export function getExceptionPropertiesFrom(eventProperties: Record) $active_feature_flags, $sentry_url, $sentry_exception, + $level, } = eventProperties let $exception_stack_trace_raw = eventProperties.$exception_stack_trace_raw @@ -151,6 +152,7 @@ export function getExceptionPropertiesFrom(eventProperties: Record) $active_feature_flags, $sentry_url, $exception_stack_trace_raw, + $level, } } @@ -172,13 +174,14 @@ export function ErrorDisplay({ event }: { event: EventType | RecordingEventType $active_feature_flags, $sentry_url, $exception_stack_trace_raw, + $level, } = getExceptionPropertiesFrom(event.properties) return (

{$exception_message}

- {$exception_type} + {$exception_type || $level}