Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current Observation.Context missing from WebClient request #31646

Closed
github-actions bot opened this issue Nov 21, 2023 · 1 comment
Closed

Current Observation.Context missing from WebClient request #31646

github-actions bot opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) theme: observability An issue related to observability and tracing type: backport An issue that is a backport of another issue to a maintenance branch type: bug A general bug
Milestone

Comments

@github-actions
Copy link

Backport of gh-31609

@github-actions github-actions bot added in: web Issues in web modules (web, webmvc, webflux, websocket) theme: observability An issue related to observability and tracing type: backport An issue that is a backport of another issue to a maintenance branch type: bug A general bug labels Nov 21, 2023
@github-actions github-actions bot added this to the 6.0.15 milestone Nov 21, 2023
@bclozel bclozel changed the title Cannot add custom observation KeyValues from ExchangeFilterFunctions Current Observation.Context missing from WebClient request Nov 24, 2023
Copy link
Author

Fixed via 2baf064

bclozel added a commit that referenced this issue Nov 24, 2023
Prior to this commit, `ExchangeFilterFunction` could only get the
current observation from the reactor context. This is particularly
useful when such filters want to add KeyValues to the observation
context.

This commit makes this use case easier by adding the context of the
current observation as a request attribute. This also aligns the
behavior with other instrumentations.

Fixes gh-31646
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) theme: observability An issue related to observability and tracing type: backport An issue that is a backport of another issue to a maintenance branch type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant