Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Current observation not in scope during WebClient ExchangeFilterFunction execution #33559

Closed
Assignees
bclozel
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)theme: observabilityAn issue related to observability and tracingtype: bugA general bug
Milestone
@bclozel

Description

@bclozel

This was discussed with@chemicL inmicrometer-metrics/micrometer#5472

Currently,DefaultWebClient executesExchangeFilterFunction as the reactive pipeline is assembled during subscription. This means that if imperative code is executed in a filter function, it won't be aware of the current observation through the local scope.

For example, when automatic context propagation is enabled for Reactor operators, the logger MDC will not know about the current traceId/spanId.

ExchangeFilterFunctionassertionFilter = (request,chain) -> {logger.info("This log will not contain the traceId information");returnchain.exchange(request);};

We should defer the execution of filter functions to fix that limitation.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)theme: observabilityAn issue related to observability and tracingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp