We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7a3465 commit 3918e2aCopy full SHA for 3918e2a
packages/replay-internal/src/util/addGlobalListeners.ts
@@ -47,6 +47,10 @@ export function addGlobalListeners(replay: ReplayContainer): void {
47
});
48
49
client.on('spanStart', span => {
50
+ const replayId = replay.getSessionId();
51
+ if (replay.isEnabled() && replayId) {
52
+ span.setAttribute('sentry.replay_id', replayId);
53
+ }
54
replay.lastActiveSpan = span;
55
56
0 commit comments