@sentry/types
Advanced tools
Comparing version 7.89.0 to 7.90.0
{ | ||
"name": "@sentry/types", | ||
"version": "7.89.0", | ||
"version": "7.90.0", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -27,3 +27,3 @@ export { Attachment } from './attachment'; | ||
export { Runtime } from './runtime'; | ||
export { CaptureContext, Scope, ScopeContext } from './scope'; | ||
export { CaptureContext, Scope, ScopeContext, ScopeData } from './scope'; | ||
export { SdkInfo } from './sdkinfo'; | ||
@@ -30,0 +30,0 @@ export { SdkMetadata } from './sdkmetadata'; |
@@ -28,2 +28,21 @@ import { Attachment } from './attachment'; | ||
} | ||
export interface ScopeData { | ||
eventProcessors: EventProcessor[]; | ||
breadcrumbs: Breadcrumb[]; | ||
user: User; | ||
tags: { | ||
[key: string]: Primitive; | ||
}; | ||
extra: Extras; | ||
contexts: Contexts; | ||
attachments: Attachment[]; | ||
propagationContext: PropagationContext; | ||
sdkProcessingMetadata: { | ||
[key: string]: unknown; | ||
}; | ||
fingerprint: string[]; | ||
level?: SeverityLevel; | ||
transactionName?: string; | ||
span?: Span; | ||
} | ||
/** | ||
@@ -35,2 +54,4 @@ * Holds additional event information. {@link Scope.applyToEvent} will be called by the client before an event is sent. | ||
addEventProcessor(callback: EventProcessor): this; | ||
/** Get the data of this scope, which is applied to an event during processing. */ | ||
getScopeData(): ScopeData; | ||
/** | ||
@@ -37,0 +58,0 @@ * Updates user context information for future events. |
@@ -27,3 +27,3 @@ export type { Attachment } from './attachment'; | ||
export type { Runtime } from './runtime'; | ||
export type { CaptureContext, Scope, ScopeContext } from './scope'; | ||
export type { CaptureContext, Scope, ScopeContext, ScopeData } from './scope'; | ||
export type { SdkInfo } from './sdkinfo'; | ||
@@ -30,0 +30,0 @@ export type { SdkMetadata } from './sdkmetadata'; |
@@ -28,2 +28,21 @@ import type { Attachment } from './attachment'; | ||
} | ||
export interface ScopeData { | ||
eventProcessors: EventProcessor[]; | ||
breadcrumbs: Breadcrumb[]; | ||
user: User; | ||
tags: { | ||
[key: string]: Primitive; | ||
}; | ||
extra: Extras; | ||
contexts: Contexts; | ||
attachments: Attachment[]; | ||
propagationContext: PropagationContext; | ||
sdkProcessingMetadata: { | ||
[key: string]: unknown; | ||
}; | ||
fingerprint: string[]; | ||
level?: SeverityLevel; | ||
transactionName?: string; | ||
span?: Span; | ||
} | ||
/** | ||
@@ -35,2 +54,4 @@ * Holds additional event information. {@link Scope.applyToEvent} will be called by the client before an event is sent. | ||
addEventProcessor(callback: EventProcessor): this; | ||
/** Get the data of this scope, which is applied to an event during processing. */ | ||
getScopeData(): ScopeData; | ||
/** | ||
@@ -37,0 +58,0 @@ * Updates user context information for future events. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261813
5426