Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine status KeyValue for HTTP server observations
Prior to this commit, a cancelled exchange would always result in an `"status":"UNKNOWN"` KeyValue. This only applied to reactive variants, as cancelled exchanges are not currently detected for Servlet implementations. In some cases, exchanges can be cancelled by clients before they are completed, but the response was actually received by the client. The response status information has been set by the application and the response has been committed. For those cases, we shouldn't assume an "UNKNOWN" value. This commit assumes that committed responses have a response status set by the application and that the observations should reflect that. From now on, we only assume an "UNKNOWN" status if the response has not been commited. Fixes gh-31388
- Loading branch information