Missing tracing context on uncaught exception in RestController #37647
Labels
for: external-project
For an external project and not something we can fix
status: duplicate
A duplicate of another issue
Spring Boot: 3.1.4
When an exception is thrown in RestController, Tracing context (trace and spanid) is missing in log.
Being able to correlate exception in log with specific transaction (trace) seems to be a very essential functionality of tracing.
I am using
spring-cloud-gcp-starter-logging
library for logging (logging.googleapis.com/trace and logging.googleapis.com/spanId fields) but the problem is more general.Example:
curl http://localhost:8080/test
The same functionality is working fine on Spring Boot 2.7.16:
The same problem occurs for WebFlux:
I am attaching examples for MVC Spring Boot 2.7.16 (working), MVC Spring Boot 3.1.4 (not working) and WebFlux Spring Boot 3.1.4 (not working).
SpringBoot3.1.4.zip
SpringBoot2.7.16.zip
WebFlux3.1.4.zip
The text was updated successfully, but these errors were encountered: