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

Method getScopeData

packages/core/src/scope.ts:642–660  ·  view source on GitHub ↗

* Get the data of this scope, which should be applied to an event during processing.

()

Source from the content-addressed store, hash-verified

640 * Get the data of this scope, which should be applied to an event during processing.
641 */
642 public getScopeData(): ScopeData {
643 return {
644 breadcrumbs: this._breadcrumbs,
645 attachments: this._attachments,
646 contexts: this._contexts,
647 tags: this._tags,
648 attributes: this._attributes,
649 extra: this._extra,
650 user: this._user,
651 level: this._level,
652 fingerprint: this._fingerprint || [],
653 eventProcessors: this._eventProcessors,
654 propagationContext: this._propagationContext,
655 sdkProcessingMetadata: this._sdkProcessingMetadata,
656 transactionName: this._transactionName,
657 span: _getSpanForScope(this),
658 conversationId: this._conversationId,
659 };
660 }
661
662 /**
663 * Add data which will be accessible during event processing but won't get sent to Sentry.

Callers 15

simulateRequestFunction · 0.95
index.test.tsFile · 0.80
processSegmentSpanFunction · 0.80
middleware.test.tsFile · 0.80
scope.test.tsFile · 0.80
client.test.tsFile · 0.80

Calls 1

_getSpanForScopeFunction · 0.90

Tested by 1

simulateRequestFunction · 0.76