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

4.0.10: Reorder checking of delegate vs. wrapper in OTel tracer unwrap ( #8859

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

barchetta
Copy link
Member

Backport of #8855 to 4.0.10

Description

Resolves #8854

A recent PR added the ability to unwrap the OTel tracer as the Helidon Tracer wrapper (to the pre-existing ability to unwrap the OTel delegate tracer) by checking the wrapper first, then the delegate.

This broke previous behavior where users used unwrap(Object.class).toString() to display delegate information.

This PR reorders the checking in the OTel Tracer wrapper to restore the earlier behavior for unwrapping as Object while still adding the ability to unwrap as the wrapper (which was the purpose of this part of the earlier PR).

The PR also adds tests to make sure the older behavior works again.

Documentation

Bug fix; no doc impact.

…on-io#8855)

* Reorder checking of delegate vs. wrapper in OTel tracer unwrap

Signed-off-by: Tim Quinn <tim.quinn@oracle.com>

* Relax the test a bit making sure unwrap(Object.class) returns what we expect

---------

Signed-off-by: Tim Quinn <tim.quinn@oracle.com>
@barchetta barchetta added tracing backport Issues that are merged into a single branch, but missing in either master or previous release 4.x Version 4.x labels Jun 6, 2024
@barchetta barchetta added this to the 4.0.10 milestone Jun 6, 2024
@barchetta barchetta requested a review from tjquinno June 6, 2024 17:36
@barchetta barchetta self-assigned this Jun 6, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 6, 2024
@barchetta barchetta merged commit 35f1a03 into helidon-io:helidon-4.0.10 Jun 6, 2024
12 checks passed
@barchetta barchetta deleted the 4.0.10-8855 branch November 12, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x backport Issues that are merged into a single branch, but missing in either master or previous release OCA Verified All contributors have signed the Oracle Contributor Agreement. tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants