Takaro - v0.4.11
    Preparing search index...

    Holds additional event information. Scope.applyToEvent will be called by the client before an event will be sent.

    Implements

    • Scope
    Index

    Constructors

    • Returns Scope

    Properties

    _attachments: Attachment[]

    Attachments

    _breadcrumbs: Breadcrumb[]

    Array of breadcrumbs.

    _client?: Client<ClientOptions<BaseTransportOptions>>

    The client on this scope

    _contexts: Contexts

    Contexts

    _eventProcessors: EventProcessor[]

    Callback list that will be called after applyToEvent.

    _extra: Extras

    Extra

    _fingerprint?: string[]

    Fingerprint

    Severity

    _notifyingListeners: boolean

    Flag if notifying is happening.

    _propagationContext: PropagationContext

    Propagation Context for distributed tracing

    _requestSession?: RequestSession

    Request Mode Session Status

    _scopeListeners: ((scope: Scope) => void)[]

    Callback for client to receive scope changes.

    _sdkProcessingMetadata: { [key: string]: unknown }

    A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get sent to Sentry

    _session?: Session

    Session

    _span?: Span

    Span

    _tags: { [key: string]: Primitive }

    Tags

    _transactionName?: string

    Transaction Name

    _user: User

    User

    Methods

    • This will be called on every set call.

      Returns void

    • Parameters

      • attachment: Attachment

      Returns this

    • Parameters

      • breadcrumb: Breadcrumb
      • OptionalmaxBreadcrumbs: number

      Returns this

    • Parameters

      • callback: EventProcessor

      Returns this

    • Captures a manually created event for this scope and sends it to Sentry.

      Parameters

      • event: Event
      • Optionalhint: EventHint

        Optional additional data to attach to the Sentry event.

      Returns string

      the id of the captured event.

    • Capture an exception for this scope.

      Parameters

      • exception: unknown

        The exception to capture.

      • Optionalhint: EventHint

        Optinal additional data to attach to the Sentry event.

      Returns string

      the id of the captured Sentry event.

    • Capture a message for this scope.

      Parameters

      • message: string

        The message to capture.

      • Optionallevel: SeverityLevel

        An optional severity level to report the message with.

      • Optionalhint: EventHint

        Optional additional data to attach to the Sentry event.

      Returns string

      the id of the captured message.

    • Returns this

    • Returns this

    • Returns this

    • Clone this scope instance.

      Returns Scope

    • Returns Attachment[]

      Use getScopeData() instead.

    • Get the client assigned to this scope.

      It is generally recommended to use the global function Sentry.getClient() instead, unless you know what you are doing.

      Returns Client<ClientOptions<BaseTransportOptions>> | undefined

    • Returns Breadcrumb | undefined

    • Returns PropagationContext

    • Returns RequestSession | undefined

    • Returns ScopeData

    • Returns Session | undefined

    • Returns the Span if there is one.

      Returns Span | undefined

      Use getActiveSpan() instead.

    • Returns the Transaction attached to the scope (if there is one).

      Returns Transaction | undefined

      You should not rely on the transaction, but just use startSpan() APIs instead.

    • Returns User | undefined

    • Update the client on the scope.

      Parameters

      • client: Client<ClientOptions<BaseTransportOptions>> | undefined

      Returns void

    • Parameters

      • key: string
      • context: Context | null

      Returns this

    • Parameters

      • key: string
      • extra: unknown

      Returns this

    • Parameters

      • extras: Extras

      Returns this

    • Parameters

      • fingerprint: string[]

      Returns this

    • Parameters

      • context: PropagationContext

      Returns this

    • Parameters

      • OptionalrequestSession: RequestSession

      Returns this

    • Add data which will be accessible during event processing but won't get sent to Sentry

      Parameters

      • newData: { [key: string]: unknown }

      Returns this

    • Parameters

      Returns this

    • Sets the Span on the scope.

      Parameters

      • Optionalspan: Span

        Span

      Returns this

      Instead of setting a span on a scope, use startSpan()/startSpanManual() instead.

    • Parameters

      • key: string
      • value: Primitive

      Returns this

    • Parameters

      • tags: { [key: string]: Primitive }

      Returns this

    • Sets the transaction name on the scope for future events.

      Parameters

      • Optionalname: string

      Returns this

    • Parameters

      Returns this

    • Parameters

      • OptionalcaptureContext: CaptureContext

      Returns this

    • Inherit values from the parent scope.

      Parameters

      Returns Scope

      Use scope.clone() and new Scope() instead.