From 8837d364721ca33d2e2bdd48a3e122a81f106bae Mon Sep 17 00:00:00 2001 From: Inian Date: Tue, 10 Dec 2024 20:38:00 +0800 Subject: [PATCH] add batch size for logging --- src/internal/monitoring/logflare.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/internal/monitoring/logflare.ts b/src/internal/monitoring/logflare.ts index 4be344d3..b17f81b4 100644 --- a/src/internal/monitoring/logflare.ts +++ b/src/internal/monitoring/logflare.ts @@ -22,6 +22,7 @@ export default function () { return createLogFlareWriteStream({ apiKey: logflareApiKey, sourceToken: logflareSourceToken, + batchMaxSize: 100, onError: (err: Error) => { console.error(`[Logflare][Error] ${err.message} - ${err.stack}`) },