Skip to content

Conversation

@SylvainJuge
Copy link
Contributor

Part of #13031

@SylvainJuge SylvainJuge self-assigned this Oct 24, 2025
@SylvainJuge SylvainJuge requested a review from a team as a code owner October 24, 2025 12:30
@SylvainJuge SylvainJuge marked this pull request as draft October 24, 2025 12:51
@SylvainJuge SylvainJuge marked this pull request as ready for review October 24, 2025 14:28
@SylvainJuge SylvainJuge marked this pull request as draft October 24, 2025 16:31
Comment on lines +72 to +76
@Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class)
public static boolean methodEnter() {
// always skip original method body
return true;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[for reviewer] Without this the original return value -1 is returned in the context.FieldBackedImplementationTest#removeInstanceState test, even if the exit advice that should alter the return value executes properly.

suppress = Throwable.class,
onThrowable = Throwable.class,
inline = false)
public static void onMethodExit(@Advice.Thrown Throwable throwable) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing unused argument and useless annotation (advice returns void)

@SylvainJuge SylvainJuge marked this pull request as ready for review October 30, 2025 15:39
@laurit laurit enabled auto-merge (squash) October 31, 2025 12:36
@laurit laurit merged commit b9ef656 into open-telemetry:main Oct 31, 2025
89 checks passed
@SylvainJuge SylvainJuge deleted the indy-other branch October 31, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants