()
| 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. |
nothing calls this directly
no test coverage detected