import { Attributes, TypedAttributeValue } from '../attributes'; export type MetricType = 'counter' | 'gauge' | 'distribution'; export interface Metric { /** * The name of the metric. */ name: string; /** * The value of the metric. */ value: number; /** * The type of metric. */ type: MetricType; /** * The unit of the metric value. */ unit?: string; /** * Arbitrary structured data that stores information about the metric. */ attributes?: Record; } /** * @deprecated this was not intended for public consumption */ export type SerializedMetricAttributeValue = TypedAttributeValue; export interface SerializedMetric { /** * Timestamp in seconds (epoch time) indicating when the metric was recorded. */ timestamp: number; /** * The trace ID for this metric. */ trace_id: string; /** * The span ID for this metric. */ span_id?: string; /** * The name of the metric. */ name: string; /** * The type of metric. */ type: MetricType; /** * The unit of the metric value. */ unit?: string; /** * The value of the metric. */ value: number; /** * Arbitrary structured data that stores information about the metric. */ attributes?: Attributes; } export type SerializedMetricContainer = { items: Array; }; //# sourceMappingURL=metric.d.ts.map