Skip to main content

Module config

Module config 

Source
Expand description

Observability configuration.

Configuration is captured at Observability::new time and frozen for the lifetime of the instance. The values it carries (namespace prefix, histogram bucket boundaries) are formatted into instrument names and applied to instruments on construction, so freezing avoids per-call cost.

Env-var conventions follow the OpenTelemetry SDK spec where applicable, with PHANTOM_TELEMETRY_* for project-specific knobs. See docs/observability/refactor-plan.md §7 for the full ENV reference.

Structs§

HistogramConfig
Explicit bucket boundaries (in seconds) for latency histograms ({ns}.handshake.duration, {ns}.path.validation.duration).
ObservabilityConfig
Observability configuration.
ObservabilityConfigBuilder
Builder for ObservabilityConfig.