[chore][exporter/googlecloud] Migrate feature gate to metadata.yaml#47739
Open
nicknikolakakis wants to merge 1 commit intoopen-telemetry:mainfrom
Open
[chore][exporter/googlecloud] Migrate feature gate to metadata.yaml#47739nicknikolakakis wants to merge 1 commit intoopen-telemetry:mainfrom
nicknikolakakis wants to merge 1 commit intoopen-telemetry:mainfrom
Conversation
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>
dashpole
approved these changes
Apr 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Migrates the
exporter.googlecloud.CustomMonitoredResourcesfeature gate from a manualfeaturegate.GlobalRegistry().MustRegister()call infactory.goto thefeature_gates:section inmetadata.yaml, allowing mdatagen to generate the gate registration code automatically.Changes
feature_gates:section tometadata.yamlinternal/metadata/generated_feature_gates.goviago generateMustRegistercall andfeaturegateimport fromfactory.gofactory_test.goto use the generated gate variableexporter/googlecloudexporter/from.golangci.ymlFixes part of #46116
Testing
go test ./...inexporter/googlecloudexporter/- all tests passmake chlog-validate- valid (no changelog entry needed for[chore])make gci- no diffsschemagen- schema up to date