UNPKG

@boxyhq/metrics

Version:

Internal SDK for OTel instrumentation

16 lines (15 loc) 624 B
import type { Attributes, MetricOptions } from '@opentelemetry/api'; type HistogramOperationParams = { /** OTel meter name */ meter: string; /** Metric name being instrumented */ name: string; /** Value to be recorded */ val: number; /** MetricOptions such as unit */ histogramOptions?: MetricOptions; /** Metric Attributes in the form of key value pairs */ histogramAttributes?: Attributes; }; declare const recordHistogram: ({ meter, name, val, histogramOptions, histogramAttributes, }: HistogramOperationParams) => void; export { recordHistogram, type HistogramOperationParams };