LangfuseTracingBackend
org.llm4s.trace.LangfuseTracingBackend
final class LangfuseTracingBackend extends TracingBackend
Registers LangfuseTracing for TracingMode.Named("langfuse") (TRACING_MODE=langfuse).
Declared in llm4s-observability's META-INF/services/org.llm4s.trace.spi.TracingBackend, so depending on the module is all it takes. It reads its settings from settings.extras - the llm4s.tracing.langfuse block, which this module's reference.conf binds to the LANGFUSE_* variables - as a provider descriptor reads its named section.
Without both keys it refuses to start, so Tracing.fromSettings reports the missing variables and Tracing.create falls back to NoOpTracing with that error logged, rather than returning a tracer that drops every batch.
A class rather than an object because java.util.ServiceLoader instantiates it through a public no-arg constructor.
Attributes
- Graph
-
- Supertypes
Members list
In this article