langfuse-go icon indicating copy to clipboard operation
langfuse-go copied to clipboard

Skip REST call when event buffer is empty

Open samssh opened this issue 7 months ago • 0 comments

Hi Langfuse team,

While using the Go SDK I noticed that the client still performs a REST call on every flush interval even when there are no events queued. Because the body is an empty JSON object/array, the request has no functional effect but still:

• Generates unnecessary network traffic and latency

• Adds noise to access/error logs

• Counts toward any rate limits or request-based billing

samssh avatar May 10 '25 15:05 samssh