diff --git a/ts/index.ts b/ts/index.ts index 4dfe049..f10e5ba 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -4,7 +4,7 @@ export class LogTailAccount { private token: string; private timedAggregator = new plugins.lik.TimedAggregtor>({ - aggregationIntervalInMillis: 2000, + aggregationIntervalInMillis: 200, functionForAggregation: async (logPackagesArg) => { const requestBody = []; let lastTimestamp: number = 0; @@ -31,7 +31,7 @@ export class LogTailAccount { 'Authorization': `Bearer ${this.token}` }, requestBody, - keepAlive: true, + keepAlive: false, }); } });