@boxyhq/metrics
Version:
Internal SDK for OTel instrumentation
16 lines (15 loc) • 592 B
TypeScript
import type { Attributes, MetricOptions } from '@opentelemetry/api';
type TimerOperationParams = {
/** OTel meter name */
meter: string;
/** Metric name being instrumented */
name: string;
/** Timer value to be recorded */
val: number;
/** MetricOptions such as unit */
timerOptions?: MetricOptions;
/** Metric Attributes in the form of key value pairs */
timerAttributes?: Attributes;
};
declare const recordTimer: ({ meter, name, val, timerOptions, timerAttributes }: TimerOperationParams) => void;
export { recordTimer, type TimerOperationParams };