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

Allow reflective access to Jaeger DTO classes' fields #24491

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

sophokles73
Copy link
Contributor

The Jaeger client uses GSON to unmarshall JSON messages containing
sampling configuration to Java objects. GSON uses reflection on the DTO
object to determine fields that match the properties in the JSON object.

By default, the ReflectiveClassBuildItem does not allow access to a
class' fields via reflection so the error described in #10402 still occurs.
This PR explicitly enables it and should thus (finally) fix #10402.

The Jaeger client uses GSON to unmarshall JSON messages containing
sampling configuration to Java objects. GSON uses reflection on the DTO
object to determine fields that match the properties in the JSON object.

by default, the ReflectiveClassBuildItem does not allow access to a
class' fields via reflection. This PR therefore explicitly enables it.

This should (finally) fix quarkusio#10402

Signed-off-by: Kai Hudalla <[email protected]>
@gsmet gsmet merged commit 90cdb89 into quarkusio:main Mar 23, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Mar 23, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 23, 2022

Milestone is already set for some of the items:

We haven't automatically updated the milestones for these items.

This message is automatically generated by a bot.

@gsmet
Copy link
Member

gsmet commented Mar 23, 2022

Thanks!

@gsmet gsmet modified the milestones: 2.8.0.CR1, 2.9 - main Mar 23, 2022
@sophokles73 sophokles73 deleted the allow_access_to_jaeger_dto_fields branch March 23, 2022 10:08
sophokles73 added a commit to eclipse-hono/hono that referenced this pull request Mar 25, 2022
@gsmet gsmet modified the milestones: 2.9 - main, 2.8.0.Final Mar 28, 2022
@gsmet gsmet modified the milestones: 2.8.0.Final, 2.7.6.Final May 5, 2022
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.

RemoteControlledSampler fails with "No strategy present in response. Not updating sampler." in native mode
2 participants