Component(s)
receiver/googlecloudpubsub
What happened?
Description
In googlepubsub receiver config there is a regex expression that validates subscription name. If subscription name contains colon in project id we got an error. It is possible to create project id with : in GCP.
Steps to Reproduce
- Create GCP project with : in project id and pubsub subscription.
- Set subscription name that contains ':' e.g. projects/my-project:test/subscriptions/some-subscription
- Try to run Otel collector with this setup
Expected Result
Collectors runs normally and messages are processed.
Actual Resul
Got an error "subscription 'some-subscription' is not a valid format, use 'projects/<project_id>/subscriptions/'"
Collector version
v0.128.0
Environment information
No response
OpenTelemetry Collector configuration
Log output
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.