fix(core): update
This commit is contained in:
parent
2a562056ba
commit
329aeb2bdc
@ -4,7 +4,7 @@ export class LogTailAccount {
|
|||||||
private token: string;
|
private token: string;
|
||||||
|
|
||||||
private timedAggregator = new plugins.lik.TimedAggregtor<plugins.smartlogInterfaces.ILogPackage<{[key: string]: any}>>({
|
private timedAggregator = new plugins.lik.TimedAggregtor<plugins.smartlogInterfaces.ILogPackage<{[key: string]: any}>>({
|
||||||
aggregationIntervalInMillis: 2000,
|
aggregationIntervalInMillis: 200,
|
||||||
functionForAggregation: async (logPackagesArg) => {
|
functionForAggregation: async (logPackagesArg) => {
|
||||||
const requestBody = [];
|
const requestBody = [];
|
||||||
let lastTimestamp: number = 0;
|
let lastTimestamp: number = 0;
|
||||||
@ -31,7 +31,7 @@ export class LogTailAccount {
|
|||||||
'Authorization': `Bearer ${this.token}`
|
'Authorization': `Bearer ${this.token}`
|
||||||
},
|
},
|
||||||
requestBody,
|
requestBody,
|
||||||
keepAlive: true,
|
keepAlive: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user