Self HostingObservability

Observability via OpenTelemetry

Langfuse uses OpenTelemetry to provide observability into the application. If you want to include Langfuse into your own tracing setup, you can configure the following environment variables to send spans to your own collector:

VariableRequired / DefaultDescription
OTEL_EXPORTER_OTLP_ENDPOINThttp://localhost:4318The OTLP collector endpoint Langfuse should send traces to. Path is /v1/traces.
OTEL_SERVICE_NAMEweb/workerName of the service within your APM tool.
OTEL_TRACE_SAMPLING_RATIO1The sampling ratio for traces. A value of 1 means all traces are sent. Must be between 0 and 1.

If you experience any issues when self-hosting Langfuse, please:

  1. Check out Troubleshooting & FAQ page.
  2. Use Ask AI to get instant answers to your questions.
  3. Ask the maintainers on GitHub Discussions.
  4. Create a bug report or feature request on GitHub.

Enterprise-grade support is available when self-hosting Langfuse. Learn more on our pricing page.


Was this page helpful?

Last edited