OpenTelemetryConfig

org.llm4s.llmconnect.config.OpenTelemetryConfig
See theOpenTelemetryConfig companion object
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. Read from the llm4s.tracing.opentelemetry block, which this module's reference.conf binds to OTEL_SERVICE_NAME and OTEL_EXPORTER_OTLP_ENDPOINT; with TRACING_MODE=opentelemetry (or otel) that block reaches the backend as TracingSettings.extras (OpenTelemetryConfig.fromExtras).

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

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

Companion
object
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