Rate limit exceed using Langfuse Python SDK #3920
-
Hello, I am facing an issue of rate limit exceed (error 429) when extracting traces using the following code:
I am developing an external pipeline evaluation using Python, but I am not being able to eficientily extract Langfuse traces. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @laisalvescw! 👋 I'm here to help you with any bugs, questions, or becoming a contributor. Let's tackle this together! The rate limit for the Langfuse API when using the Python SDK is 1000 batches per minute for Hobby/Pro users and 5000 batches per minute for Team users [1]. To efficiently extract Langfuse traces and avoid hitting the rate limit, you can use the SDK's support for event queuing and batching. You can configure the batching behavior using the Regarding filtering traces by criteria such as |
Beta Was this translation helpful? Give feedback.
Hey @laisalvescw! 👋 I'm here to help you with any bugs, questions, or becoming a contributor. Let's tackle this together!
The rate limit for the Langfuse API when using the Python SDK is 1000 batches per minute for Hobby/Pro users and 5000 batches per minute for Team users [1].
To efficiently extract Langfuse traces and avoid hitting the rate limit, you can use the SDK's support for event queuing and batching. You can configure the batching behavior using the
flush_at
andflush_interval
options. For example, setflushAt=1
to send every event immediately orflushInterval=1000
to send every second. You can also manually flush events using theflush
method [2][3].Regarding filtering traces…