mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-02 10:35:54 +00:00
* metric repo * add metric repo * remove unused import * formatting * fix * try disabling job metrics for e2e * import otel in test module
13 lines
480 B
TypeScript
13 lines
480 B
TypeScript
import { MetricOptions } from '@opentelemetry/api';
|
|
|
|
export interface CustomMetricOptions extends MetricOptions {
|
|
enabled?: boolean;
|
|
}
|
|
|
|
export const IMetricRepository = 'IMetricRepository';
|
|
|
|
export interface IMetricRepository {
|
|
addToCounter(name: string, value: number, options?: CustomMetricOptions): void;
|
|
updateGauge(name: string, value: number, options?: CustomMetricOptions): void;
|
|
updateHistogram(name: string, value: number, options?: CustomMetricOptions): void;
|
|
}
|