We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
beforeSendMetric
1 parent 93faf61 commit 6d75c8fCopy full SHA for 6d75c8f
packages/core/src/types-hoist/options.ts
@@ -420,9 +420,9 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
420
* @default undefined
421
*
422
* @param metric The metric generated by the SDK.
423
- * @returns A new metric that will be sent.
+ * @returns A new metric that will be sent | null.
424
*/
425
- beforeSendMetric?: (metric: Metric) => Metric;
+ beforeSendMetric?: (metric: Metric) => Metric | null;
426
427
/**
428
* Function to compute tracing sample rate dynamically and filter unwanted traces.
0 commit comments