From 96397accce300556f2c274aa402f5fbf98bb70c6 Mon Sep 17 00:00:00 2001 From: Felix Kaminski Date: Mon, 3 Jun 2024 13:57:38 +0200 Subject: [PATCH] fix: adds missing docs, triggers CI --- src/lib/MeteringRecorder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/MeteringRecorder.ts b/src/lib/MeteringRecorder.ts index f0ce636..eb4103f 100644 --- a/src/lib/MeteringRecorder.ts +++ b/src/lib/MeteringRecorder.ts @@ -8,8 +8,9 @@ export { Registry as PrometheusRegistry } from "prom-client" export class MeteringRecorder { public client!: typeof promClient; public register!: Registry; - private prefix!: string; + + // creates a new MeteringRecorder with an optional registry (e.g. for concurrent setups) constructor(prefix: string, registry: Registry) { this.prefix = prefix.endsWith("__") ? prefix : `${prefix}__`; this.client = promClient;