Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): Include _sdkProcessingMetadata when cloning scope #6218

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/core/src/scope.ts
Expand Up @@ -95,6 +95,8 @@ export class Scope implements ScopeInterface {
/** Request Mode Session Status */
protected _requestSession?: RequestSession;

// NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.

public constructor() {
this._notifyingListeners = false;
this._scopeListeners = [];
Expand Down Expand Up @@ -128,6 +130,7 @@ export class Scope implements ScopeInterface {
newScope._eventProcessors = [...scope._eventProcessors];
newScope._requestSession = scope._requestSession;
newScope._attachments = [...scope._attachments];
newScope._sdkProcessingMetadata = { ...scope._sdkProcessingMetadata };
}
return newScope;
}
Expand Down