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

Disable pkg.translator.prometheus.NormalizeName feature gate by default #2044

Merged
merged 5 commits into from
May 8, 2023

Conversation

bryan-aguilar
Copy link
Contributor

Description: Disables the pkg.translator.prometheus.NormalizeName feature gate by default.
Issue #2043

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bryan-aguilar bryan-aguilar requested a review from a team as a code owner May 5, 2023 18:39
@@ -92,6 +92,15 @@ func main() {
// our default component list. Flags also need to be parsed before creating the config provider.
func buildAndParseFlagSet(featgate *featuregate.Registry) (*flag.FlagSet, error) {
flagSet := config.Flags(featgate)

// TODO: remove after ADOT Collector v0.30.0 is released
if err := featgate.Set("pkg.translator.prometheus.NormalizeName", false); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

how users can opt-in into using the normalized names?

Copy link
Contributor Author

@bryan-aguilar bryan-aguilar May 5, 2023

Choose a reason for hiding this comment

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

The instructions are in the linked issue. Do you think we need to duplicate it here?

Copy link
Member

Choose a reason for hiding this comment

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

I'm asking if it is possible to override this from the command line, since this is hard coded. is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it is possible. The feature gate flags are parsed later on in collector initialization. If a user provides --featuregates=+pkg.translator.prometheus.NormalizeName at startup it will be overridden.

@rapphil rapphil merged commit e077daa into main May 8, 2023
@rapphil rapphil deleted the disableFeatureGate branch May 8, 2023 19:39
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.

3 participants