MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / constructor

Method constructor

packages/core/src/scope.ts:163–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
162
163 public constructor() {
164 this._notifyingListeners = false;
165 this._scopeListeners = [];
166 this._eventProcessors = [];
167 this._breadcrumbs = [];
168 this._attachments = [];
169 this._user = {};
170 this._tags = {};
171 this._attributes = {};
172 this._extra = {};
173 this._contexts = {};
174 this._sdkProcessingMetadata = {};
175 this._propagationContext = {
176 traceId: generateTraceId(),
177 sampleRand: safeMathRandom(),
178 };
179 }
180
181 /**
182 * Clone all data from this scope into a new scope.

Callers

nothing calls this directly

Calls 2

generateTraceIdFunction · 0.90
safeMathRandomFunction · 0.90

Tested by

no test coverage detected