Applies defaults, validates (throws ConfigError) and freezes.
ReadonlycompressionExport compression.
ReadonlyconnectOptional Readonlyenvironmentdeployment.environment.name.
ReadonlyexportExport deadline in ms.
ReadonlygrpcOTLP/gRPC target.
ReadonlyheadersReadonlyhealthhealth_check URL.
ReadonlyhealthWhether healthUrl was set explicitly.
Optional ReadonlyhooksOptional ReadonlyloggerReadonlylogsLog export on/off.
ReadonlylogsLog batch settings (unset fields use the SPEC defaults).
ReadonlylogsLog-only export headers.
Optional ReadonlylogsExplicit OTLP/HTTP logs URL.
ReadonlymetricMetric export interval in ms.
ReadonlymetricsMetric export on/off.
ReadonlymetricsMetric-only export headers.
Optional ReadonlymetricsExplicit OTLP/HTTP metrics URL.
ReadonlypropagatorsPropagators.
ReadonlyprotocolExport protocol.
Optional ReadonlyproxyReadonlyrequestReadonlyresourceResource attributes.
ReadonlyresourceResource detectors run by initTelemetry.
ReadonlyretryReadonlyruntimeRuntime metrics on/off.
ReadonlysamplerTrace sampler.
ReadonlysamplerSampler ratio.
Readonlyserviceservice.name.
Optional Readonlyserviceservice.version.
Optional ReadonlytelemetryInternal telemetry (Prometheus) URL.
ReadonlytlsReadonlytotalReadonlytracesTrace export on/off.
ReadonlytracesBatch span processor settings (unset fields use the SPEC defaults).
ReadonlytracesTrace-only export headers.
Optional ReadonlytracesExplicit OTLP/HTTP traces URL.
ReadonlyurlOptional ReadonlyuserReadonlyzpageszpages base URL.
Static ReadonlyDEFAULT_Default export deadline in ms.
Static ReadonlyDEFAULT_Default OTLP/gRPC target.
Static ReadonlyDEFAULT_Default metric export interval in ms.
Static ReadonlyDEFAULT_Default OTLP/HTTP base URL.
Static ReadonlyENV_Prefix of every environment variable.
The export endpoint of a signal for the configured protocol: the explicit <signal>Url
when set (in both protocols), else grpcUrl for gRPC and url + /v1/<signal> for HTTP.
Export headers of a signal: headers with the per-signal headers on top.
Values of sensitive export headers (authorization, *token*, *key*, …) to redact.
OTLP/HTTP URL of a signal: the explicit <signal>Url, else url + /v1/<signal>.
Debug form: every header value redacted, URL credentials hidden.
Returns a string representation of an object.
Throws ConfigError when a setting is invalid.
StaticfromReturns options when it already is a config, otherwise builds one.
StaticfromBuilds a config from the environment. Precedence per field: explicit overrides >
GROW_OPENTELEMETRY_COLLECTOR_<NAME> > GROW_OTEL_<NAME> > per-signal OTEL_* > generic
OTEL_* > default. Map fields (headers, resourceAttributes, per-signal headers, batch
settings) merge key by key in the same order. A present but invalid value throws
ConfigError naming the variable, never its value.
Immutable configuration of OtelCollectorClient and of the OTLP exporters.