Install Langfuse + Strands Agent without cloud and without local docker #10645
-
Describe your questionhow can I configure Langfuse just with pip install langfuse in strands agents, but I am not allowed to send api in the cloud only locally but locally I am not allowed to get the docer image? Langfuse Cloud or Self-Hosted?Self-Hosted If self-hosted, what version are you running?No response SDK and integration versionsNo response Pre-Submission Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Based on the available sources, Langfuse requires a backend infrastructure to function - you cannot run Langfuse purely with The Langfuse Python SDK (
For the Strands Agents integration specifically, you need to configure OpenTelemetry to point to a Langfuse backend endpoint(3): os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = os.environ.get("LANGFUSE_BASE_URL") + "/api/public/otel"
os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = f"Authorization=Basic {LANGFUSE_AUTH}"Your options are:
Since you cannot use cloud or Docker, you would need to manually set up all the required infrastructure components (PostgreSQL, ClickHouse, Redis, etc.) and run the Langfuse application directly. However, the available documentation does not provide instructions for installing Langfuse without Docker(4). I recommend checking these potentially relevant resources: Would you like a general answer based on my knowledge instead? 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Based on the available sources, Langfuse requires a backend infrastructure to function - you cannot run Langfuse purely with
pip install langfusewithout either cloud or self-hosted infrastructure(1)(2).The Langfuse Python SDK (
pip install langfuse) is just a client that sends trace data to a Langfuse backend(3). The backend requires:For the Strands Agents integration specifically, you need to configure OpenTelemetry to point to a Langfuse backend endpoint(3):