#Operations Guide
Version: 0.33.0 Updated: 2026-03-15 Applies to: ranvier (facade), ranvier-http, ranvier-inspector Category: Deep Dives
Production-ready configuration, health probes, structured logging, and telemetry for Ranvier applications.
#Configuration System
- RanvierConfig: 4-layer loading โ defaults,
ranvier.toml, profile overrides, environment variables. - Profile Overrides:
RANVIER_PROFILE=prodactivates[profile.prod]section inranvier.toml. - HttpIngress::config(): Applies server settings and initializes telemetry from config.
#Health & Readiness
| Endpoint | Description |
|---|---|
/health |
Full health status with registered check results |
/ready |
Readiness probe โ returns 200 when all checks pass |
/live |
Liveness probe โ always returns 200 (process is alive) |
health_endpoint(): JSON health status with registered check results.readiness_liveness_default(): Kubernetes-style/readyand/liveprobes.health_check(): Register async health checks (DB connectivity, external service pings).
#Request Pipeline
- request_id_layer(): Ensures
x-request-idpropagation on every request/response. - AccessLogGuard: Structured HTTP request/response logging as a Transition node.
- Path Redaction:
AccessLogGuard.redact_paths()for sensitive endpoints like/auth/login.
#Structured Logging
config.init_logging(): Initializes tracing subscriber from config.- Three formats:
json(production, machine-readable),pretty(development),compact. - Per-module level overrides via
logging.module_levelsinranvier.toml.
#Telemetry & OTLP
- TelemetryConfig: OTLP endpoint, protocol (gRPC/HTTP), service name, sample ratio.
- init_telemetry(): No-op when
otlp_endpointisNone; auto-initializes TracerProvider when set. - Inspector /metrics: Prometheus exposition format for Grafana/AlertManager integration.
#Workflows
- Create
ranvier.tomlwith server, logging, telemetry, and inspector sections. - Load config with
RanvierConfig::load()and initialize logging withconfig.init_logging(). - Pass config to
HttpIngress::config()to apply server settings and start telemetry. - Add
health_endpoint()andreadiness_liveness_default()for Kubernetes probes. - Enable
request_id_layer()for request tracing correlation. - Add
AccessLogGuardto Axon pipelines for structured request logging. - Configure OTLP endpoint via environment variable for production tracing.
#Key Types
| Type | Description |
|---|---|
| RanvierConfig | Top-level config with 4-layer loading (defaults, file, profile, env) |
| TelemetryConfig | OTLP endpoint, protocol, service name, and sampling ratio |
| AccessLogGuard | Transition node for structured HTTP logging with path redaction |
| LogFormat | Structured logging output format: json, pretty, or compact |