Skip to content

Commit 6d75c8f

Browse files
authored
fix(metrics): Update return type of beforeSendMetric (#18261)
1 parent 93faf61 commit 6d75c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/types-hoist/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
420420
* @default undefined
421421
*
422422
* @param metric The metric generated by the SDK.
423-
* @returns A new metric that will be sent.
423+
* @returns A new metric that will be sent | null.
424424
*/
425-
beforeSendMetric?: (metric: Metric) => Metric;
425+
beforeSendMetric?: (metric: Metric) => Metric | null;
426426

427427
/**
428428
* Function to compute tracing sample rate dynamically and filter unwanted traces.

0 commit comments

Comments
 (0)