LangfuseConfig

org.llm4s.llmconnect.config.LangfuseConfig
See theLangfuseConfig companion object
case class LangfuseConfig(url: String, publicKey: Option[Secret], secretKey: Option[Secret], env: String, release: String, version: String)

Connection and metadata settings for the Langfuse tracing backend.

Read from the llm4s.tracing.langfuse block, which llm4s-observability's reference.conf binds to LANGFUSE_URL, LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_ENV, LANGFUSE_RELEASE and LANGFUSE_VERSION. With TRACING_MODE=langfuse that block reaches the backend as TracingSettings.extras (LangfuseConfig.fromExtras); to read it whatever the mode, use org.llm4s.config.LangfuseConfigLoader.

This lived in llm4s-core until slice 6 (#1133), as TracingSettings.langfuse. The package is unchanged.

toString redacts both keys so that the config can be safely logged.

Value parameters

env

deployment environment tag attached to every trace; defaults to "production"

publicKey

Langfuse public API key; the backend refuses to start without it

release

application release identifier forwarded to Langfuse; defaults to "1.0.0"

secretKey

Langfuse secret API key; redacted in toString

url

Langfuse ingestion endpoint; defaults to LangfuseConfig.DEFAULT_URL

version

SDK/integration version forwarded to Langfuse; defaults to "1.0.0"

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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product