@sentry/types
Advanced tools
Comparing version 8.1.0 to 8.2.0
{ | ||
"name": "@sentry/types", | ||
"version": "8.1.0", | ||
"version": "8.2.0", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -6,2 +6,3 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
import { SdkMetadata } from './sdkmetadata'; | ||
import { SpanJSON } from './span'; | ||
import { StackLineParser, StackParser } from './stacktrace'; | ||
@@ -251,2 +252,10 @@ import { TracePropagationTargets } from './tracing'; | ||
/** | ||
* An event-processing callback for spans. This allows a span to be modified before it's sent. | ||
* | ||
* Returning `null` will cause this span to be dropped. | ||
* @param span The span generated by the SDK. | ||
* @returns A new span that will be sent | null. | ||
*/ | ||
beforeSendSpan?: (span: SpanJSON) => SpanJSON | null; | ||
/** | ||
* An event-processing callback for transaction events, guaranteed to be invoked after all other event | ||
@@ -253,0 +262,0 @@ * processors. This allows an event to be modified or dropped before it's sent. |
@@ -6,2 +6,3 @@ import type { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
import type { SdkMetadata } from './sdkmetadata'; | ||
import type { SpanJSON } from './span'; | ||
import type { StackLineParser, StackParser } from './stacktrace'; | ||
@@ -251,2 +252,10 @@ import type { TracePropagationTargets } from './tracing'; | ||
/** | ||
* An event-processing callback for spans. This allows a span to be modified before it's sent. | ||
* | ||
* Returning `null` will cause this span to be dropped. | ||
* @param span The span generated by the SDK. | ||
* @returns A new span that will be sent | null. | ||
*/ | ||
beforeSendSpan?: (span: SpanJSON) => SpanJSON | null; | ||
/** | ||
* An event-processing callback for transaction events, guaranteed to be invoked after all other event | ||
@@ -253,0 +262,0 @@ * processors. This allows an event to be modified or dropped before it's sent. |
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
310599
6428