diff --git a/experimental/packages/sdk-logs/src/export/BatchLogRecordProcessorBase.ts b/experimental/packages/sdk-logs/src/export/BatchLogRecordProcessorBase.ts index 18f4eb3fa9e..178c4f135f7 100644 --- a/experimental/packages/sdk-logs/src/export/BatchLogRecordProcessorBase.ts +++ b/experimental/packages/sdk-logs/src/export/BatchLogRecordProcessorBase.ts @@ -40,7 +40,7 @@ export abstract class BatchLogRecordProcessorBase private readonly _exportTimeoutMillis: number; private _finishedLogRecords: LogRecord[] = []; - private _timer: number | undefined; + private _timer: NodeJS.Timeout | undefined; private _shutdownOnce: BindOnceFuture; constructor( @@ -106,7 +106,7 @@ export abstract class BatchLogRecordProcessorBase * */ private _flushAll(): Promise { return new Promise((resolve, reject) => { - const promises = []; + const promises: Promise[] = []; const batchCount = Math.ceil( this._finishedLogRecords.length / this._maxExportBatchSize ); diff --git a/packages/opentelemetry-sdk-trace-base/src/export/BatchSpanProcessorBase.ts b/packages/opentelemetry-sdk-trace-base/src/export/BatchSpanProcessorBase.ts index 1d5173f898e..7e02842bb0e 100644 --- a/packages/opentelemetry-sdk-trace-base/src/export/BatchSpanProcessorBase.ts +++ b/packages/opentelemetry-sdk-trace-base/src/export/BatchSpanProcessorBase.ts @@ -43,7 +43,7 @@ export abstract class BatchSpanProcessorBase private _isExporting = false; private _finishedSpans: ReadableSpan[] = []; - private _timer: number | undefined; + private _timer: NodeJS.Timeout | undefined; private _shutdownOnce: BindOnceFuture; private _droppedSpansCount: number = 0;