fix: Improve performance by removing unnecessary client flush in LangFuseTracer (#8125)

fix: remove unnecessary client flush in LangFuseTracer to improve performance
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-05-19 17:35:49 -03:00 committed by GitHub
commit 40bcca53d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,7 +151,6 @@ class LangFuseTracer(BaseTracer):
"metadata": metadata,
}
self.trace.update(**serialize(content_update))
self._client.flush()
def get_langchain_callback(self) -> BaseCallbackHandler | None:
if not self._ready: