logtail-js icon indicating copy to clipboard operation
logtail-js copied to clipboard

Using @logtail/edge causes huge increase in GB-s footprint on cloudflare

Open abhishiv opened this issue 1 year ago • 2 comments

Hello, I'm using @logtail/edge in a cloudflare pages application with _worker.js. The web server is hono.

I recently added @logtail/edge to my app and my usage increased from around 60 GB-s to 2.3k GB-s

Screenshot 2024-07-23 at 12 51 15

For now I have removed logging and will update the thread with how the usage looks post removal.

abhishiv avatar Jul 23 '24 09:07 abhishiv

Update: the issue is gone after removing logtail.

FYKI The increase is around 6x which IMHO make logtail unusable in production on cloudflare.

Screenshot 2024-07-24 at 20 29 14

abhishiv avatar Jul 24 '24 17:07 abhishiv

It's likely depending on your region the huge increase in usage is just awaiting the response from the server to confirm the logs have been written, is there anyway for you to check what percent of the runtime is spent idling? it might be that serverless logging could use a rework to just pop off log requests without batching and never await them as the loss of a few logs due to network issues is less important then the massive increase in cost

versecafe avatar Aug 14 '24 20:08 versecafe