UNPKG

@boxyhq/metrics

Version:

Internal SDK for OTel instrumentation

16 lines (15 loc) 614 B
import type { Attributes, MetricOptions } from '@opentelemetry/api'; type GaugeOperationParams = { /** OTel meter name */ meter: string; /** Metric name being instrumented */ name: string; /** Non-additive value observed at a point in time */ val: number; /** MetricOptions such as unit */ gaugeOptions?: MetricOptions; /** Metric Attributes in the form of key value pairs */ gaugeAttributes?: Attributes; }; declare const observeGauge: ({ meter, name, val, gaugeOptions, gaugeAttributes }: GaugeOperationParams) => void; export { observeGauge, type GaugeOperationParams };