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

Adds pubsub.ClientConfig to the configuration #35

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

rjfonseca
Copy link
Contributor

The pubsub client has more configuration options that what was being exposed by the watermill configuration structs in the publisher and the subscriber.

This commit adds the missing pubsub.ClientConfig struct to the watermill configuration structs and changes the client initialization to NewClientWithConfig instead of NewClient.

This change is retro-compatible because it defaults to nil, which is the same default value used by the pubsub client.

This this is necessary to enable OpenTelemetry support in pubsub client by setting EnableOpenTelemetryTracing in the ClientConfig struct.

The pubsub client has more configuration options that what was being
exposed by the watermill configuration structs.

This adds the missing pubsub.ClientConfig struct to the watermill
configuration structs and changes the client initialization to
NewClientWithConfig instead of NewClient.
@m110
Copy link
Member

m110 commented Oct 16, 2024

Thank you @rjfonseca!

@m110 m110 merged commit 63b382e into ThreeDotsLabs:master Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants