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

Rewrite @Advice.Enter for indy advice #9887

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Nov 16, 2023

Rewrite entry advice that doesn't return void by embedding the original return value in Object array that we use to carry the locals etc from enter to exit advice. This also resolves the issue where using helper class as a return value from entry advice didn't work because helper classes aren't visible to the advised class (now it sees Object[] instead of the helper).

@laurit laurit requested a review from a team November 16, 2023 12:16
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

nice

@laurit laurit force-pushed the indy-rewrite-advice-enter branch from 0fe2dcb to 30e9ef0 Compare November 16, 2023 18:36
@trask trask merged commit 6313391 into open-telemetry:main Nov 17, 2023
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants