UNPKG

700 BTypeScriptView Raw
1import type { MeasurementUnit, Span } from '@sentry/types';
2import type { MetricSummary } from '@sentry/types';
3import type { Primitive } from '@sentry/types';
4import type { MetricType } from './types';
5/**
6 * Fetches the metric summary if it exists for the passed span
7 */
8export declare function getMetricSummaryJsonForSpan(span: Span): Record<string, Array<MetricSummary>> | undefined;
9/**
10 * Updates the metric summary on the currently active span
11 */
12export declare function updateMetricSummaryOnActiveSpan(metricType: MetricType, sanitizedName: string, value: number, unit: MeasurementUnit, tags: Record<string, Primitive>, bucketKey: string): void;
13//# sourceMappingURL=metric-summary.d.ts.map
\No newline at end of file