From fc1d17011c059ea06b4edf7e7cf9c74abedc2403 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Tue, 29 Apr 2025 10:19:59 +0200 Subject: [PATCH] fix(instrumentation-kafkajs): add missing delcare keyword for metric instruments --- .../node/instrumentation-kafkajs/src/instrumentation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/node/instrumentation-kafkajs/src/instrumentation.ts b/plugins/node/instrumentation-kafkajs/src/instrumentation.ts index 2f1c605293..b356de167f 100644 --- a/plugins/node/instrumentation-kafkajs/src/instrumentation.ts +++ b/plugins/node/instrumentation-kafkajs/src/instrumentation.ts @@ -163,10 +163,10 @@ const HISTOGRAM_BUCKET_BOUNDARIES = [ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10, ]; export class KafkaJsInstrumentation extends InstrumentationBase { - private _clientDuration!: Histogram; - private _sentMessages!: Counter; - private _consumedMessages!: Counter; - private _processDuration!: Histogram; + private declare _clientDuration: Histogram; + private declare _sentMessages: Counter; + private declare _consumedMessages: Counter; + private declare _processDuration: Histogram; constructor(config: KafkaJsInstrumentationConfig = {}) { super(PACKAGE_NAME, PACKAGE_VERSION, config);