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
- captureContent
-
record message content - prompts, completions, an agent's query, tool input and output - on spans, redacted, as the GenAI conventions'
gen_ai.input.messages/gen_ai.output.messages;falseby default, as the conventions recommend, since content often holds personal or confidential data (#2275) - 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