TracingSettings

org.llm4s.llmconnect.config.TracingSettings
See theTracingSettings companion object
@Stable
final case class TracingSettings

Tracing configuration used by org.llm4s.trace.Tracing.

mode selects the backend. Core builds NoOp and Console itself; Console reads captureContent from extras (the llm4s.tracing.console block, false by default, so the console prints no prompt or completion text unless enabled). Every other mode is served by a org.llm4s.trace.spi.TracingBackend on the classpath, which reads its own keys from extras: the block llm4s.tracing.<mode> for the selected mode, flattened to strings. The backend's module ships that block's defaults and ${?VAR} bindings in its own reference.conf - the arrangement provider descriptors have with NamedProviderConfig.extras. So llm4s-observability reads llm4s.tracing.langfuse (LangfuseConfig.fromExtras) and llm4s-observability-otel reads llm4s.tracing.opentelemetry.

Until slice 6 (#1133) this class also carried typed langfuse and openTelemetry fields; they left core with their backends.

toString redacts the extras values, which may be credentials.

Value parameters

extras

every value under llm4s.tracing.<mode> for the selected mode, as a string, keyed by its path within that block (publicKey, headers.Authorization); a list or object value is rendered as HOCON. Empty when the block is absent. Build one with TracingSettings.apply and change it with the with* setters; the constructor and copy are private, so a new field never breaks callers.

mode

selects the tracing backend: Console, NoOp, or Named for a backend outside core (Named("langfuse"), Named("opentelemetry"), ...)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def withExtras(extras: Map[String, String]): TracingSettings

Replaces the selected backend's settings (the flattened llm4s.tracing.<mode> block).

Replaces the selected backend's settings (the flattened llm4s.tracing.<mode> block).

Attributes

Sets the tracing backend.

Sets the tracing backend.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product