LangfuseTracingBackend

org.llm4s.trace.LangfuseTracingBackend

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
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Builds the tracer for settings.

Builds the tracer for settings.

Return a Left rather than throwing when the backend cannot start - a missing credential, an unreachable collector that fails eagerly - so that Tracing.fromSettings can report it. A thrown exception is caught and reported the same way, but loses the chance to say what went wrong.

Attributes

Concrete fields

The mode this backend serves. A backend outside core uses TracingMode.Named; matching is by TracingMode.name, case-insensitively.

The mode this backend serves. A backend outside core uses TracingMode.Named; matching is by TracingMode.name, case-insensitively.

Attributes