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

Resolves various thread hop problems with Spring Reactor call chaining. #1883

Merged
merged 2 commits into from May 15, 2024

Conversation

jbedell-newrelic
Copy link
Contributor

Grab a token when the SubscribeOnSubscriber is created and then link it when it is run().
Also copied this and the FluxMapFuseable instrumentation to the reactor-3.3.0 module.

…d the FluxMapFuseable instrumentation to the reactor-3.3.0 module
@jbedell-newrelic
Copy link
Contributor Author

Resolves: #1780
Resolves: #1450

@codecov-commenter
Copy link

codecov-commenter commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.66%. Comparing base (f1e9c8c) to head (0315d52).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1883      +/-   ##
============================================
- Coverage     70.68%   70.66%   -0.03%     
+ Complexity     9877     9876       -1     
============================================
  Files           828      828              
  Lines         39848    39848              
  Branches       6064     6064              
============================================
- Hits          28167    28158       -9     
- Misses         8954     8962       +8     
- Partials       2727     2728       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}
}

public void run() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this in a transaction?

Or is the method being instrumented after the first run? (due to token.link...() being called outside of a transaction)?

If it is the latter, we should add @Trace(async=true) to all these methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the is working as intended without the @trace annotations added.

@jbedell-newrelic jbedell-newrelic merged commit 2e42bc8 into main May 15, 2024
111 checks passed
@jbedell-newrelic jbedell-newrelic deleted the 1780_subscribeon_fix branch May 15, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Code Complete/Done
4 participants