Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Services

Services are cross-cutting infrastructure that registers into the CamelContext lifecycle. They observe, manage, and secure the runtime. Components produce and consume Exchanges. Services do not.

Lifecycle trait

The Lifecycle trait coordinates service start and stop with CamelContext. Register with with_lifecycle(...). Services start in registration order, stop in reverse order, and report Stopped, Started, or Failed through Lifecycle::status().

Available services

ServiceCrateDescription
Prometheuscamel-prometheusRoute metrics at /metrics plus health endpoints
OpenTelemetrycamel-otelTraces, metrics, and logs over OTLP
Authcamel-authToken validation, claim mapping, permission checks
Function runtimecamel-functionOut-of-process user code invoked as function: pipeline steps
Bridgecamel-bridgeSpawns and supervises Java bridge processes for JVM-only components (JMS, XML, CXF)

Reference: Services crate. See also Health endpoints.