How to flush and wait for traces to be updated to server. #5299
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @ajeeth-b! I'm here to help you squash bugs, answer questions, and become a contributor. Let's tackle this together! 🤖 To ensure that # Assuming you have a langfuse client instance
langfuse_client.flush()
# Now you can safely retrieve the traces
traces = langfuse_client.get_traces(trace_id) The To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Currently, there is a delay of 15-30 seconds until traces can be fetched from the API again. You'll need to add a delay + retry with some backoff here. We are making changes to reduce this. See note
|
Beta Was this translation helpful? Give feedback.
Currently, there is a delay of 15-30 seconds until traces can be fetched from the API again. You'll need to add a delay + retry with some backoff here. We are making changes to reduce this.
See note