Merge branch '6.0.x'

This commit is contained in:
Brian Clozel
2023-10-11 11:24:00 +02:00
2 changed files with 17 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ public class DefaultServerRequestObservationConvention implements ServerRequestO
}
protected KeyValue status(ServerRequestObservationContext context) {
if (context.isConnectionAborted()) {
if (context.isConnectionAborted() && (context.getResponse() == null || !context.getResponse().isCommitted())) {
return STATUS_UNKNOWN;
}
return (context.getResponse() != null && context.getResponse().getStatusCode() != null) ?