Skip to content

Rate limit exceed using Langfuse Python SDK #3920

Answered by dosubot bot
laisalvescw asked this question in Support
Discussion options

You must be logged in to vote

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 and flush_interval options. For example, set flushAt=1 to send every event immediately or flushInterval=1000 to send every second. You can also manually flush events using the flush method [2][3].

Regarding filtering traces…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jannikmaierhoefer
Comment options

Answer selected by jannikmaierhoefer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants