File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { _getTraceInfoFromScope } from '../client';
4
4
import { getClient , getCurrentScope , getGlobalScope , getIsolationScope } from '../currentScopes' ;
5
5
import { DEBUG_BUILD } from '../debug-build' ;
6
6
import type { Scope , ScopeData } from '../scope' ;
7
+ import type { Integration } from '../types-hoist/integration' ;
7
8
import type { Log , SerializedLog , SerializedLogAttributeValue } from '../types-hoist/log' ;
8
9
import { mergeScopeData } from '../utils/applyScopeDataToEvent' ;
9
10
import { consoleSandbox , debug } from '../utils/debug-logger' ;
@@ -150,6 +151,9 @@ export function _INTERNAL_captureLog(
150
151
setLogAttribute ( processedLogAttributes , 'sentry.sdk.name' , name ) ;
151
152
setLogAttribute ( processedLogAttributes , 'sentry.sdk.version' , version ) ;
152
153
154
+ const replay = client . getIntegrationByName < Integration & { getReplayId : ( ) => string } > ( 'Replay' ) ;
155
+ setLogAttribute ( processedLogAttributes , 'sentry.replay_id' , replay ?. getReplayId ( ) ) ;
156
+
153
157
const beforeLogMessage = beforeLog . message ;
154
158
if ( isParameterizedString ( beforeLogMessage ) ) {
155
159
const { __sentry_template_string__, __sentry_template_values__ = [ ] } = beforeLogMessage ;
You can’t perform that action at this time.
0 commit comments