1
- import { addBreadcrumb } from '@sentry/core' ;
2
1
import type { Event , EventHint } from '@sentry/types' ;
3
2
import { logger } from '@sentry/utils' ;
4
3
@@ -50,13 +49,6 @@ export function handleGlobalEventListener(
50
49
event . tags = { ...event . tags , replayId : replay . getSessionId ( ) } ;
51
50
}
52
51
53
- if ( __DEBUG_BUILD__ && replay . getOptions ( ) . _experiments . traceInternals && isErrorEvent ( event ) ) {
54
- const exc = getEventExceptionValues ( event ) ;
55
- addInternalBreadcrumb ( {
56
- message : `Tagging event (${ event . event_id } ) - ${ event . message } - ${ exc . type } : ${ exc . value } ` ,
57
- } ) ;
58
- }
59
-
60
52
// In cases where a custom client is used that does not support the new hooks (yet),
61
53
// we manually call this hook method here
62
54
if ( afterSendHandler ) {
@@ -67,22 +59,3 @@ export function handleGlobalEventListener(
67
59
return event ;
68
60
} ;
69
61
}
70
-
71
- function addInternalBreadcrumb ( arg : Parameters < typeof addBreadcrumb > [ 0 ] ) : void {
72
- const { category, level, message, ...rest } = arg ;
73
-
74
- addBreadcrumb ( {
75
- category : category || 'console' ,
76
- level : level || 'debug' ,
77
- message : `[debug]: ${ message } ` ,
78
- ...rest ,
79
- } ) ;
80
- }
81
-
82
- function getEventExceptionValues ( event : Event ) : { type : string ; value : string } {
83
- return {
84
- type : 'Unknown' ,
85
- value : 'n/a' ,
86
- ...( event . exception && event . exception . values && event . exception . values [ 0 ] ) ,
87
- } ;
88
- }
0 commit comments