-
Notifications
You must be signed in to change notification settings - Fork 1.1k
handleReactive() - Missing TraceId #9110
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
Milestone
Comments
Just made the fix and tested it against your sample project.
I believe this is what you are expecting. |
spring-builds
pushed a commit
that referenced
this issue
May 3, 2024
Fixes: #9110 * Move context propagation utilities to the `IntegrationReactiveUtils` * Capture context into message header in the `IntegrationReactiveUtils.adaptSubscribableChannelToPublisher()` before `sink.tryEmitNext()` * Restore the context from message header in the `flatMap()` for `ReactiveStreamsConsumer.reactiveMessageHandler` (cherry picked from commit 7abf1a5)
Thanks, yes it is as expected |
artembilan
added a commit
that referenced
this issue
May 6, 2024
Related to: #9110 * Make `IntegrationReactiveUtils.CONTEXT_SNAPSHOT_FACTORY` instance conditional on the `IntegrationReactiveUtils.isContextPropagationPresent` to avoid class-not-found problem for the `io.micrometer.context.ContextSnapshot` * Make `IntegrationReactiveUtils.captureReactorContext()` & `IntegrationReactiveUtils.setThreadLocalsFromReactorContext()` conditional on the `isContextPropagationPresent` **Auto-cherry-pick to `6.2.x`**
spring-builds
pushed a commit
that referenced
this issue
May 6, 2024
Related to: #9110 * Make `IntegrationReactiveUtils.CONTEXT_SNAPSHOT_FACTORY` instance conditional on the `IntegrationReactiveUtils.isContextPropagationPresent` to avoid class-not-found problem for the `io.micrometer.context.ContextSnapshot` * Make `IntegrationReactiveUtils.captureReactorContext()` & `IntegrationReactiveUtils.setThreadLocalsFromReactorContext()` conditional on the `isContextPropagationPresent` (cherry picked from commit 2225b83)
EddieChoCho
pushed a commit
to EddieChoCho/spring-integration
that referenced
this issue
Jun 26, 2024
…Handler` Fixes: spring-projects#9110 * Move context propagation utilities to the `IntegrationReactiveUtils` * Capture context into message header in the `IntegrationReactiveUtils.adaptSubscribableChannelToPublisher()` before `sink.tryEmitNext()` * Restore the context from message header in the `flatMap()` for `ReactiveStreamsConsumer.reactiveMessageHandler` **Auto-cherry-pick to `6.2.x`**
EddieChoCho
pushed a commit
to EddieChoCho/spring-integration
that referenced
this issue
Jun 26, 2024
Related to: spring-projects#9110 * Make `IntegrationReactiveUtils.CONTEXT_SNAPSHOT_FACTORY` instance conditional on the `IntegrationReactiveUtils.isContextPropagationPresent` to avoid class-not-found problem for the `io.micrometer.context.ContextSnapshot` * Make `IntegrationReactiveUtils.captureReactorContext()` & `IntegrationReactiveUtils.setThreadLocalsFromReactorContext()` conditional on the `isContextPropagationPresent` **Auto-cherry-pick to `6.2.x`**
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.handleReactive()
terminal operator does NOT log with traceId / spanId. ReactorContext seems to be lost. This behavior is observed in the latest version 3.2.5 of Spring BootPlease take a look at the below sample depicting the problem. Thanks
https://github.com/syedyusufh/simple-handle-reactive.git
The text was updated successfully, but these errors were encountered: