Skip to content

[receiver/googlecloudpubsub] It is not possible to set pubsub subscription name that contains colon in project id. #44449

@aglipska

Description

@aglipska

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

  1. Create GCP project with : in project id and pubsub subscription.
  2. Set subscription name that contains ':' e.g. projects/my-project:test/subscriptions/some-subscription
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions