Skip to content

Commit 32f41ee

Browse files
authored
fix(instrumentation-kafkajs): add missing delcare keyword for metric instruments (#2805)
1 parent f07dcce commit 32f41ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/node/instrumentation-kafkajs/src/instrumentation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ const HISTOGRAM_BUCKET_BOUNDARIES = [
163163
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,
164164
];
165165
export class KafkaJsInstrumentation extends InstrumentationBase<KafkaJsInstrumentationConfig> {
166-
private _clientDuration!: Histogram<ClientDurationAttributes>;
167-
private _sentMessages!: Counter<SentMessagesAttributes>;
168-
private _consumedMessages!: Counter<ConsumedMessagesAttributes>;
169-
private _processDuration!: Histogram<MessageProcessDurationAttributes>;
166+
private declare _clientDuration: Histogram<ClientDurationAttributes>;
167+
private declare _sentMessages: Counter<SentMessagesAttributes>;
168+
private declare _consumedMessages: Counter<ConsumedMessagesAttributes>;
169+
private declare _processDuration: Histogram<MessageProcessDurationAttributes>;
170170

171171
constructor(config: KafkaJsInstrumentationConfig = {}) {
172172
super(PACKAGE_NAME, PACKAGE_VERSION, config);

0 commit comments

Comments
 (0)