Skip to content

Commit 0e3ed7f

Browse files
committed
include _sdkProcessingMetadata when cloning scope
1 parent 62ad0f3 commit 0e3ed7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/scope.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ export class Scope implements ScopeInterface {
9595
/** Request Mode Session Status */
9696
protected _requestSession?: RequestSession;
9797

98+
// NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
99+
98100
public constructor() {
99101
this._notifyingListeners = false;
100102
this._scopeListeners = [];
@@ -128,6 +130,7 @@ export class Scope implements ScopeInterface {
128130
newScope._eventProcessors = [...scope._eventProcessors];
129131
newScope._requestSession = scope._requestSession;
130132
newScope._attachments = [...scope._attachments];
133+
newScope._sdkProcessingMetadata = { ...scope._sdkProcessingMetadata };
131134
}
132135
return newScope;
133136
}

0 commit comments

Comments
 (0)