Skip to content

Ensure ClientResponse logPrefix Contains the Connection Id When Available #26656

Closed
@rstoyanchev

Description

@rstoyanchev

ClientRequest exposes a logPrefix, controlled via a request attribute or otherwise set to an identity hash by default. The logPrefix is passed to and exposed in the ClientResponse but and it helps to correlate request and response logging, However, it is not connected to the underlying connection id and logging from the underlying HTTP client.

ClientHttpResponse can expose an id similar to ServerHttpRequest which can be based on the connection id when available. This can then be appended to the existing logPrefix such that once a response is obtained, subsequent logging will also include the underlying a connection id.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions