org.llm4s.llmconnect.config.OpenTelemetryConfig
See theOpenTelemetryConfig companion object
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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article