Skip to content

Commit

Permalink
Fixing TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
njoy89 committed Mar 18, 2024
1 parent 77a9601 commit 0188173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export abstract class BatchLogRecordProcessorBase<T extends BufferConfig>
private readonly _exportTimeoutMillis: number;

private _finishedLogRecords: LogRecord[] = [];
private _timer: number | undefined;
private _timer: NodeJS.Timeout | undefined;
private _shutdownOnce: BindOnceFuture<void>;

constructor(
Expand Down Expand Up @@ -106,7 +106,7 @@ export abstract class BatchLogRecordProcessorBase<T extends BufferConfig>
* */
private _flushAll(): Promise<void> {
return new Promise((resolve, reject) => {
const promises = [];
const promises: Promise<void>[] = [];
const batchCount = Math.ceil(
this._finishedLogRecords.length / this._maxExportBatchSize
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export abstract class BatchSpanProcessorBase<T extends BufferConfig>

private _isExporting = false;
private _finishedSpans: ReadableSpan[] = [];
private _timer: number | undefined;
private _timer: NodeJS.Timeout | undefined;
private _shutdownOnce: BindOnceFuture<void>;
private _droppedSpansCount: number = 0;

Expand Down

0 comments on commit 0188173

Please sign in to comment.