@envelop/prometheus
Version:
This plugin tracks the complete execution flow, and reports metrics using Prometheus tracing (based on `prom-client`).
8 lines (7 loc) • 667 B
TypeScript
import { Plugin } from '@envelop/core';
import { PrometheusTracingPluginConfig } from './config.js';
import { createCounter, createHistogram, createSummary, FillLabelsFnParams, type CounterAndLabels, type HistogramAndLabels, type SummaryAndLabels } from './utils.js';
export { CounterAndLabels, FillLabelsFnParams, HistogramAndLabels, PrometheusTracingPluginConfig, SummaryAndLabels, createCounter, createHistogram, createSummary, };
export declare const fillLabelsFnParamsMap: WeakMap<any, FillLabelsFnParams | null>;
export declare const execStartTimeMap: WeakMap<any, number>;
export declare const usePrometheus: (config: PrometheusTracingPluginConfig) => Plugin;