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

Clear default propagator when one is explicitly added #8695

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

tjquinno
Copy link
Member

Description

Resolves #8651

The propagationFormats attribute of the JaegerTracerBuilder is an EnumSet and is assigned a single default value using a field initializer.

But the addPropagationFormat method simply adds its parameter to the EnumSet without regard to the default value.

This PR adds logic to clear the default value upon the first explicit addition of a propagation format.

The PR includes tests to make sure the default value is cleared properly and retained properly.

Documentation

Bug fix; no doc impact.

@tjquinno tjquinno self-assigned this Apr 22, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 22, 2024
@tjquinno tjquinno merged commit 215a083 into helidon-io:main Apr 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JaegerTracerBuilder propagatorFormats property retains initial default value even when explicitly set
2 participants