File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
experimental/packages/sdk-logs/src/export
packages/opentelemetry-sdk-trace-base/src/export Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export abstract class BatchLogRecordProcessorBase<T extends BufferConfig>
40
40
private readonly _exportTimeoutMillis : number ;
41
41
42
42
private _finishedLogRecords : LogRecord [ ] = [ ] ;
43
- private _timer : number | undefined ;
43
+ private _timer : NodeJS . Timeout | undefined ;
44
44
private _shutdownOnce : BindOnceFuture < void > ;
45
45
46
46
constructor (
@@ -106,7 +106,7 @@ export abstract class BatchLogRecordProcessorBase<T extends BufferConfig>
106
106
* */
107
107
private _flushAll ( ) : Promise < void > {
108
108
return new Promise ( ( resolve , reject ) => {
109
- const promises = [ ] ;
109
+ const promises : Promise < void > [ ] = [ ] ;
110
110
const batchCount = Math . ceil (
111
111
this . _finishedLogRecords . length / this . _maxExportBatchSize
112
112
) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export abstract class BatchSpanProcessorBase<T extends BufferConfig>
43
43
44
44
private _isExporting = false ;
45
45
private _finishedSpans : ReadableSpan [ ] = [ ] ;
46
- private _timer : number | undefined ;
46
+ private _timer : NodeJS . Timeout | undefined ;
47
47
private _shutdownOnce : BindOnceFuture < void > ;
48
48
private _droppedSpansCount : number = 0 ;
49
49
You can’t perform that action at this time.
0 commit comments