Path: redb-route/redb.Route/Configuration/RouteEngineOptions.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Configuration/RouteEngineOptions.cs ---- namespace redb.Route.Configuration; /// /// Root configuration options for the route engine. /// Bound from configuration section "RedbRoute". /// public sealed class RouteEngineOptions { /// Configuration section name. public const string SectionName = "RedbRoute"; /// /// Whether to enable OpenTelemetry tracing: the route spans and the transport spans connectors open through /// with this context. Off, neither is opened, so a trace never /// holds a transport span without the route it belongs to; an incoming or ambient trace context is still passed /// on to the next hop. Default: true. /// public bool EnableTelemetry { get; set; } = true; /// /// Whether to enable metrics collection (exchange count, duration, failures). /// Default: true. /// public bool EnableMetrics { get; set; } = true; /// /// Whether to record per-node message history on every exchange (Apache Camel Message History EIP): /// each node is timed and appended to exchange.Properties["CamelMessageHistory"], and the /// trail is dumped on failure. A route may override this with .MessageHistory(bool). /// Default: false (matches Camel — slight overhead, opt-in). /// public bool EnableMessageHistory { get; set; } /// /// Graceful shutdown timeout when stopping routes. /// Default: 30 seconds. /// public TimeSpan ShutdownTimeout { get; set; } = TimeSpan.FromSeconds(30); /// /// Whether to throw on startup if a route fails to compile. /// When false, failed routes are logged and skipped. /// Default: true. /// public bool ThrowOnCompilationError { get; set; } = true; /// /// Whether the engine performs cross-cutting startup checks during route compilation /// and emits warnings for misconfigurations (e.g., a route declares .Cluster(true) /// but no is registered, so it would run /// on all nodes despite the intent). /// Default: true. Set to false in tests that intentionally exercise mis-wiring. /// public bool StartupChecks { get; set; } = true; /// /// Default per-exchange processing timeout applied to all routes /// that don't specify their own via .ProcessingTimeout(). /// Default: (no timeout). /// public TimeSpan DefaultProcessingTimeout { get; set; } = Timeout.InfiniteTimeSpan; /// /// Stream caching options. When is true, /// all routes automatically wrap Stream bodies with a seekable cache. /// public StreamCacheOptions StreamCaching { get; set; } = new(); /// Message attachment options (RedbRoute:Attachments). public AttachmentOptions Attachments { get; set; } = new(); /// /// Retry of a consumer that failed to start with the context (RedbRoute:ConsumerStartRetry). On by default. /// public ConsumerStartRetryOptions ConsumerStartRetry { get; set; } = new(); /// /// Reconnect of a connection lost while a route runs (RedbRoute:Reconnect), for the connectors that report their /// connections to a : pauses, the bound of one connect, the warning period. /// public ReconnectOptions Reconnect { get; set; } = new(); /// /// The profile every detached step (WireTap, asynchronous OnCompletion) builds its own pool from when /// it names none (RedbRoute:DefaultThreadPoolProfile): 20 at a time, 1000 waiting, the caller runs a branch /// that finds both full. Apache Camel's default thread pool profile. /// public ThreadPoolProfile DefaultThreadPoolProfile { get; set; } = new(); /// /// Named profiles a step picks with executorService (RedbRoute:ThreadPoolProfiles:<name>). A module /// that builds its routes in code can add its own with . /// public Dictionary ThreadPoolProfiles { get; set; } = new(StringComparer.Ordinal); }