@sentry/types
Advanced tools
Comparing version 8.21.0 to 8.22.0
@@ -254,7 +254,11 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
/** | ||
* An event-processing callback for spans. This allows a span to be modified before it's sent. | ||
* This function can be defined to modify or entirely drop a child span before it's sent. | ||
* Returning `null` will cause this span to be dropped. | ||
* | ||
* Returning `null` will cause this span to be dropped. | ||
* Note that this function is only called for child spans and not for the root span (formerly known as transaction). | ||
* If you want to modify or drop the root span, use {@link Options.beforeSendTransaction} instead. | ||
* | ||
* @param span The span generated by the SDK. | ||
* @returns A new span that will be sent | null. | ||
* | ||
* @returns A new span that will be sent or null if the span should not be sent. | ||
*/ | ||
@@ -261,0 +265,0 @@ beforeSendSpan?: (span: SpanJSON) => SpanJSON | null; |
@@ -254,7 +254,11 @@ import type { Breadcrumb, BreadcrumbHint } from './breadcrumb'; | ||
/** | ||
* An event-processing callback for spans. This allows a span to be modified before it's sent. | ||
* This function can be defined to modify or entirely drop a child span before it's sent. | ||
* Returning `null` will cause this span to be dropped. | ||
* | ||
* Returning `null` will cause this span to be dropped. | ||
* Note that this function is only called for child spans and not for the root span (formerly known as transaction). | ||
* If you want to modify or drop the root span, use {@link Options.beforeSendTransaction} instead. | ||
* | ||
* @param span The span generated by the SDK. | ||
* @returns A new span that will be sent | null. | ||
* | ||
* @returns A new span that will be sent or null if the span should not be sent. | ||
*/ | ||
@@ -261,0 +265,0 @@ beforeSendSpan?: (span: SpanJSON) => SpanJSON | null; |
{ | ||
"name": "@sentry/types", | ||
"version": "8.21.0", | ||
"version": "8.22.0", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
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
329781
6767