Skip to content

Clear default propagator when one is explicitly added#8695

Merged
tjquinno merged 1 commit into
helidon-io:mainfrom
tjquinno:4.x-jaeger-tracer-builder-fix
Apr 24, 2024
Merged

Clear default propagator when one is explicitly added#8695
tjquinno merged 1 commit into
helidon-io:mainfrom
tjquinno:4.x-jaeger-tracer-builder-fix

Conversation

@tjquinno

Copy link
Copy Markdown
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
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