When an exception is thrown and tracing is enabled (for example in TokenEndpoint#processGrantRequest), there is a warning logged:
INFO [io.quarkus.opentelemetry.runtime.QuarkusContextStorage] (vert.x-eventloop-thread-3) Context in storage not the expected context, Scope.close was not called correctly. Details: OTel context before: ...
This is duplicating GitHub issue https://github.com/keycloak/keycloak/issues/41469