MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / Scope

Class Scope

packages/core/src/scope.ts:95–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 * Holds additional event information.
94 */
95export class Scope {
96 /** Flag if notifying is happening. */
97 protected _notifyingListeners: boolean;
98
99 /** Callback for client to receive scope changes. */
100 protected _scopeListeners: Array<(scope: Scope) => void>;
101
102 /** Callback list that will be called during event processing. */
103 protected _eventProcessors: EventProcessor[];
104
105 /** Array of breadcrumbs. */
106 protected _breadcrumbs: Breadcrumb[];
107
108 /** User */
109 protected _user: User;
110
111 /** Tags */
112 protected _tags: { [key: string]: Primitive };
113
114 /** Attributes */
115 protected _attributes: RawAttributes<Record<string, unknown>>;
116
117 /** Extra */
118 protected _extra: Extras;
119
120 /** Contexts */
121 protected _contexts: Contexts;
122
123 /** Attachments */
124 protected _attachments: Attachment[];
125
126 /** Propagation Context for distributed tracing */
127 protected _propagationContext: PropagationContext;
128
129 /**
130 * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
131 * sent to Sentry
132 */
133 protected _sdkProcessingMetadata: SdkProcessingMetadata;
134
135 /** Fingerprint */
136 protected _fingerprint?: string[];
137
138 /** Severity */
139 protected _level?: SeverityLevel;
140
141 /**
142 * Transaction Name
143 *
144 * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.
145 * It's purpose is to assign a transaction to the scope that's added to non-transaction events.
146 */
147 protected _transactionName?: string;
148
149 /** Session */
150 protected _session?: Session;
151
152 /** The client on this scope */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected