OpenTelemetryConfig

org.llm4s.llmconnect.config.OpenTelemetryConfig
case class OpenTelemetryConfig(serviceName: String, endpoint: String, headers: Map[String, String])

Connection settings for an OpenTelemetry collector.

Spans are exported via OTLP/gRPC to endpoint. Set OTEL_EXPORTER_OTLP_ENDPOINT in the environment (picked up by org.llm4s.config.Llm4sConfig) to override the default local collector address.

Value parameters

endpoint

OTLP/gRPC collector address; defaults to "http://localhost:4317"

headers

additional HTTP headers sent with each OTLP export request (e.g. authentication tokens for hosted collectors)

serviceName

logical service name attached to every span as service.name; defaults to "llm4s-agent"

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product