How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Enriching OTeL spans with domain exception information when working with Webflux exception handlers

calendar_today July 1, 2026 person filpa domain spring-boot

We have a Spring Webflux-based applications (based on Spring Boot 3.5) that contains a @ControllerAdvice class for centralized exception handling. In our domain services, we have domain-specific exceptions that we map using @ExceptionHandler s, e.g.: @ControllerAdvice public class MyGlobalExceptionHandler { @ExceptionHandler(DomainException.class) public ResponseEntity handleDomainException(DomainException ex) { … } } This works flawlessly for mapping domain exception to specific error responses containing human readable error codes for our clients, including setting the relevant HTTP respon

open_in_new Read original post