Methods
addAttachment
- addAttachment(attachment): Scope
-
addBreadcrumb
- addBreadcrumb(breadcrumb, maxBreadcrumbs?): Scope
-
Parameters
-
-
Optional
maxBreadcrumbs: number
addEventProcessor
- addEventProcessor(callback): Scope
-
clearAttachments
- clearAttachments(): Scope
-
clearBreadcrumbs
- clearBreadcrumbs(): Scope
-
getAttachments
- getAttachments(): Attachment[]
-
Returns Attachment[]
getPropagationContext
- getPropagationContext(): PropagationContext
-
Returns PropagationContext
getRequestSession
- getRequestSession(): undefined | RequestSession
-
Returns undefined | RequestSession
getSession
- getSession(): undefined | Session
-
Returns undefined | Session
getSpan
- getSpan(): undefined | Span
-
Returns undefined | Span
getUser
- getUser(): undefined | User
-
Returns undefined | User
setContext
- setContext(name, context): Scope
-
Parameters
-
name: string
-
context: null | Context
setExtra
-
Parameters
-
key: string
-
extra: unknown
setFingerprint
- setFingerprint(fingerprint): Scope
-
setPropagationContext
- setPropagationContext(context): Scope
-
Parameters
-
context: PropagationContext
setRequestSession
- setRequestSession(requestSession?): Scope
-
Parameters
-
Optional
requestSession: RequestSession
setSDKProcessingMetadata
- setSDKProcessingMetadata(newData): Scope
-
Parameters
-
newData: {
[key: string]: unknown;
}
setSession
- setSession(session?): Scope
-
Parameters
-
Optional
session: Session
setTag
- setTag(key, value): Scope
-
Parameters
-
key: string
-
value: Primitive
setTags
- setTags(tags): Scope
-
Parameters
-
tags: {
[key: string]: Primitive;
}
setTransactionName
- setTransactionName(name?): Scope
-
update
- update(captureContext?): Scope
-
Holds additional event information. Scope.applyToEvent will be called by the client before an event is sent.