mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 09:13:14 +03:00
* metric repo * add metric repo * remove unused import * formatting * fix * try disabling job metrics for e2e * import otel in test module
14 lines
480 B
TypeScript
14 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;
|
|
}
|