@boxyhq/metrics
Version:
Internal SDK for OTel instrumentation
16 lines (15 loc) • 644 B
TypeScript
import type { Attributes, MetricOptions } from '@opentelemetry/api';
type CounterOperationParams = {
/** OTel meter name */
meter: string;
/** Metric name being instrumented */
name: string;
/** Value by which counter is incremented, defaults to 1 */
inc?: number;
/** MetricOptions such as unit */
counterOptions?: MetricOptions;
/** Metric Attributes in the form of key value pairs */
counterAttributes?: Attributes;
};
declare const incrementCounter: ({ meter, name, inc, counterOptions, counterAttributes, }: CounterOperationParams) => void;
export { incrementCounter, type CounterOperationParams };