Skip to content

[chore][exporter/googlecloud] Migrate feature gate to metadata.yaml#47739

Open
nicknikolakakis wants to merge 1 commit intoopen-telemetry:mainfrom
nicknikolakakis:chore/46116-googlecloud-feature-gate
Open

[chore][exporter/googlecloud] Migrate feature gate to metadata.yaml#47739
nicknikolakakis wants to merge 1 commit intoopen-telemetry:mainfrom
nicknikolakakis:chore/46116-googlecloud-feature-gate

Conversation

@nicknikolakakis
Copy link
Copy Markdown
Contributor

@nicknikolakakis nicknikolakakis commented Apr 18, 2026

Description

Migrates the exporter.googlecloud.CustomMonitoredResources feature gate from a manual featuregate.GlobalRegistry().MustRegister() call in factory.go to the feature_gates: section in metadata.yaml, allowing mdatagen to generate the gate registration code automatically.

Changes

  • Added feature_gates: section to metadata.yaml
  • Generated internal/metadata/generated_feature_gates.go via go generate
  • Removed manual MustRegister call and featuregate import from factory.go
  • Updated factory_test.go to use the generated gate variable
  • Removed forbidigo linter exclusion for exporter/googlecloudexporter/ from .golangci.yml

Fixes part of #46116

Testing

  • go test ./... in exporter/googlecloudexporter/ - all tests pass
  • make chlog-validate - valid (no changelog entry needed for [chore])
  • make gci - no diffs
  • schemagen - schema up to date

Migrate exporter.googlecloud.CustomMonitoredResources feature gate from
manual featuregate.GlobalRegistry().MustRegister() in factory.go to the
feature_gates section in metadata.yaml, allowing mdatagen to generate
the gate registration code automatically.

Fixes part of open-telemetry#46116

Signed-off-by: Nick Nikolakakis <nonicked@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants