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

fix(pubsub): honor option.WithTelemetryDisabled #2815

Merged
merged 3 commits into from
Sep 3, 2020
Merged

fix(pubsub): honor option.WithTelemetryDisabled #2815

merged 3 commits into from
Sep 3, 2020

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Sep 2, 2020

It seem that the telemetry options added here predate general
telemetry handling. There is no need to explicitly enable such
options here as it is taken care of grpc.DialPool:
https://pkg.go.dev/google.golang.org/api/transport/grpc?#DialPool.
The stats handler is only added if option.WithTelemetryDisabled is
not passed in.

Fixes: #2751

It seem that the telemetry options added here predate general
telemtry handling. There is no need to explicitly enable such
options here as it is taken care of grpc.DialPool:
https://pkg.go.dev/google.golang.org/api/transport/grpc?tab=doc#DialPool.
The stats handler is only added if option.WithTelemetryDisabled is
not passed in.

Fixes: #2751
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 2, 2020
@codyoss
Copy link
Member Author

codyoss commented Sep 2, 2020

Here is where the option is added in the private dial function.

Copy link
Member

@hongalex hongalex left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Sep 3, 2020
@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label Sep 3, 2020
@gcf-merge-on-green gcf-merge-on-green bot merged commit 00cf7a1 into googleapis:master Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubsub: option.WithTelemetryDisabled ignored
2 participants