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

ISPN-14426 Allow to disable tracing propagation on HotRod client #10552

Merged
merged 2 commits into from Jan 11, 2023

Conversation

fax4ever
Copy link
Contributor

Copy link
Contributor

@karesti karesti left a comment

Choose a reason for hiding this comment

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

we need a test change to verify that it's true by default and the operation disable

@fax4ever
Copy link
Contributor Author

we need a test change to verify that it's true by default and the operation disable

Good idea. I added it. Thanks for the review @karesti

@karesti
Copy link
Contributor

karesti commented Dec 22, 2022

if CI is ok
@tristantarrant any additional thought ?

@@ -91,6 +91,7 @@ public class ConfigurationBuilder implements ConfigurationChildBuilder, Builder<
private final List<SerializationContextInitializer> contextInitializers = new ArrayList<>();
private final Map<String, RemoteCacheConfigurationBuilder> remoteCacheBuilders;
private TransportFactory transportFactory = TransportFactory.DEFAULT;
private boolean tracingEnabled = true;
Copy link
Member

Choose a reason for hiding this comment

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

Should we disable it by default (I know: API change, but still)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know. Since we are not disabling the tracing here, only the client project can do it. We are disabling the tracing context propagation from the client (valid only if the client already uses tracing) to the server.
Maybe we should change the property name to tracingPropagationEnabled. @karesti what do you think of this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should enable it by default since depends also on the presence of a jar

@fax4ever
Copy link
Contributor Author

fax4ever commented Jan 9, 2023

thanks @tristantarrant for the review. I made some changes

@tristantarrant
Copy link
Member

In order for this to be complete, it's missing the following:

  • a "property" in org.infinispan.client.hotrod.impl.ConfigurationProperties
  • description of the property in org.infinispan.client.hotrod.configuration's package-info.java
  • symmetrical changes to the new Hot Rod client

@fax4ever
Copy link
Contributor Author

In order for this to be complete, it's missing the following:

  • a "property" in org.infinispan.client.hotrod.impl.ConfigurationProperties
  • description of the property in org.infinispan.client.hotrod.configuration's package-info.java
  • symmetrical changes to the new Hot Rod client

I tried to do it. @tristantarrant is it OK? Thanks

@@ -391,4 +391,12 @@ public interface Log extends BasicLogger {
@Message(value = "OpenTelemetry API is not present in the classpath. Client context tracing will not be propagated.", id = 4109)
void noOpenTelemetryAPI(@Cause Throwable throwable);

@LogMessage(level = DEBUG)
@Message(value = "OpenTelemetry API is present in the classpath and the tracing propagation is enabled. Client context tracing be propagated.", id = 4110)
Copy link
Member

Choose a reason for hiding this comment

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

s/tracing be propagated/tracing will be propagated/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @tristantarrant just fixed!

@tristantarrant
Copy link
Member

Merged, thanks

@fax4ever
Copy link
Contributor Author

Thank you!

@fax4ever fax4ever deleted the ISPN-14426 branch January 12, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants