@@ -283,6 +283,29 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
283
283
_experiments ?: {
284
284
// eslint-disable-next-line @typescript-eslint/no-explicit-any
285
285
[ key : string ] : any ;
286
+
287
+ /**
288
+ * If trace metrics support should be enabled.
289
+ *
290
+ * @default false
291
+ * @experimental
292
+ */
293
+ enableTraceMetrics ?: boolean ;
294
+
295
+ /**
296
+ * An event-processing callback for metrics, guaranteed to be invoked after all other metric
297
+ * processors. This allows a metric to be modified or dropped before it's sent.
298
+ *
299
+ * Note that you must return a valid metric from this callback. If you do not wish to modify the metric, simply return
300
+ * it at the end. Returning `null` will cause the metric to be dropped.
301
+ *
302
+ * @default undefined
303
+ * @experimental
304
+ *
305
+ * @param metric The metric generated by the SDK.
306
+ * @returns A new metric that will be sent | null.
307
+ */
308
+ beforeSendMetric ?: ( metric : Metric ) => Metric | null ;
286
309
} ;
287
310
288
311
/**
@@ -380,29 +403,6 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
380
403
*/
381
404
beforeSendLog ?: ( log : Log ) => Log | null ;
382
405
383
- /**
384
- * If trace metrics support should be enabled.
385
- *
386
- * @default false
387
- * @experimental
388
- */
389
- _enableTraceMetrics ?: boolean ;
390
-
391
- /**
392
- * An event-processing callback for metrics, guaranteed to be invoked after all other metric
393
- * processors. This allows a metric to be modified or dropped before it's sent.
394
- *
395
- * Note that you must return a valid metric from this callback. If you do not wish to modify the metric, simply return
396
- * it at the end. Returning `null` will cause the metric to be dropped.
397
- *
398
- * @default undefined
399
- * @experimental
400
- *
401
- * @param metric The metric generated by the SDK.
402
- * @returns A new metric that will be sent | null.
403
- */
404
- beforeSendMetric ?: ( metric : Metric ) => Metric | null ;
405
-
406
406
/**
407
407
* Function to compute tracing sample rate dynamically and filter unwanted traces.
408
408
*
0 commit comments