You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current environment variables LANGFUSE_SECRET_KEY / LANGFUSE_API_KEY, LANGFUSE_PUBLIC_KEY, and LANGFUSE_HOST may not be sufficient for tracing in Langfuse.
To address this, please update the wrapper in haystack_integrations.components.connectors.langfuse.LangfuseConnector to accept httpx_client as a parameter.
The code fix would only affect the lines
The current environment variables
LANGFUSE_SECRET_KEY
/LANGFUSE_API_KEY
,LANGFUSE_PUBLIC_KEY
, andLANGFUSE_HOST
may not be sufficient for tracing in Langfuse.For example, the following code:
might return an error:
However, this works correctly if the env variables are set correctly:
To address this, please update the wrapper in
haystack_integrations.components.connectors.langfuse.LangfuseConnector
to accepthttpx_client
as a parameter.The code fix would only affect the lines
self.tracer = LangfuseTracer(tracer=Langfuse(), name=name, public=public)
->
tracer=Langfuse(httpx_client=httpx_client or httpx.Client(verify=os.getenv('LANGFUSE_PATH_TO_CERTIFICATE')))
def __init__(self, name: str, public: bool = False, httpx_client: Optional[httpx.Client] = None)
Thanks!
The text was updated successfully, but these errors were encountered: