gnodet opened a new pull request, #21730: URL: https://github.com/apache/camel/pull/21730
## Summary - Adds a new `ErrorRegistry` SPI that captures exceptions during message routing and stores immutable snapshots (`ErrorRegistryEntry`) in bounded in-memory storage - Uses the `EventNotifier` pattern (`ExchangeFailedEvent` / `ExchangeFailureHandledEvent`) for decoupled error capture - Provides route-scoped views via `ErrorRegistryView` / `forRoute(routeId)` - Includes JMX MBean, Dev Console, and `camel.main.errorRegistry*` configuration properties - Disabled by default, opt-in via `errorRegistryEnabled=true` ## Design - **`ErrorRegistry`** extends `ErrorRegistryView` and `StaticService` — the main SPI - **`ErrorRegistryView`** — browsing/clearing interface (also returned by `forRoute()`) - **`ErrorRegistryEntry`** — immutable snapshot with record-style accessors - `DefaultErrorRegistry` extends `EventNotifierSupport`, uses `ConcurrentLinkedDeque` with lazy eviction (capacity + TTL) - Configurable: max entries (default 100), TTL (default 1h), optional stack trace capture - Follows the `InflightRepository` architectural pattern ## Test plan - [x] 7 unit tests covering: error capture, disabled state, route-scoped views, max entries eviction, stack trace capture, browse limit, clear - [x] Full `mvn clean install -Dquickly` passes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
