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

[receiver/googlecloudpubsub] allow endpoint and insecure config #10845

Merged

Conversation

k7k0
Copy link
Contributor

@k7k0 k7k0 commented Jun 8, 2022

Description:
Fixes #10844 allowing to connect the receiver to a local PubSub emulator instance or switching between global and regional service endpoints

Link to tracking Issue: #10844

Testing: tested locally by running the emulator and configuring the receiver with

receivers:
  googlecloudpubsub:
    project: "project-id"
    endpoint: localhost:8085
    insecure: true

Documentation: Added config doc for both params

@k7k0 k7k0 requested review from a team and dmitryax June 8, 2022 22:39
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 8, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: k7k0 / name: Sebastian Marconi (c22cf32)

@@ -20,6 +20,10 @@ The following configuration options are supported:
a fallback, when no `content-type` attribute is present.
* `compression` (Optional): The compression that will be used on received data from the subscription. When set it can
only be `gzip`. This will only be used as a fallback, when no `content-encoding` attribute is present.
* `endpoint` (Optional): Override the default Pubsub Endpoint, useful when connecting to the PubSub emulator instance
or switching between [global and regional service endpoints](https://cloud.google.com/pubsub/docs/reference/service_apis_overview#service_endpoints).
Copy link
Contributor

Choose a reason for hiding this comment

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

never used the regional endpoints, so I tried the out of curiosity. Verified the branch locally and worked (as well with a regional endpoint)

@alexvanboxel
Copy link
Contributor

@djaglowski can you kick off the tests? thanks.

Makefile.Common Outdated Show resolved Hide resolved
@k7k0
Copy link
Contributor Author

k7k0 commented Jun 13, 2022

fixed tests. @djaglowski can you kick off again? thanks.

@djaglowski
Copy link
Member

This looks good to me, but would appreciate a final review from @alexvanboxel before I merge it.

@alexvanboxel
Copy link
Contributor

This looks good to me, but would appreciate a final review from @alexvanboxel before I merge it.

already did and tested. Tests give a changelog error though

@djaglowski
Copy link
Member

@k7k0, please add a changelog entry.

@k7k0 k7k0 changed the title googlecloudpubsub receiver: allow endpoint and insecure config [googlecloudpubsub receiver] allow endpoint and insecure config Jun 13, 2022
@k7k0 k7k0 changed the title [googlecloudpubsub receiver] allow endpoint and insecure config [receiver/googlecloudpubsub] allow endpoint and insecure config Jun 13, 2022
@alexvanboxel
Copy link
Contributor

all green, now only need approval from allowed approvers

@djaglowski djaglowski merged commit 660527d into open-telemetry:main Jun 13, 2022
kentquirk pushed a commit to McSick/opentelemetry-collector-contrib that referenced this pull request Jun 14, 2022
…-telemetry#10845)

* googlecloudpubsub receiver: allow endpoint and insecure config

* googlecloudpubsub receiver: fix tests and doc

* googlecloudpubsub receiver: revert doc change

* googlecloudpubsub receiver: update changelog
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.

googlecloudpubsub receiver dropped support for pubsub Emulator
4 participants