Skip to content

Review featuregate.FlagValue #7042

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

Closed
bogdandrutu opened this issue Jan 27, 2023 · 0 comments · Fixed by #7356
Closed

Review featuregate.FlagValue #7042

bogdandrutu opened this issue Jan 27, 2023 · 0 comments · Fixed by #7356

Comments

@bogdandrutu
Copy link
Member

Few caveats that I found so far:

  1. The need of applying the the flag to the registry. Would be good if we can pass a registry to the flag constructor (or Registry.ToFlag something like this API) and when the flags are parsed the values are Set to the Registry.
  2. The "String" represents only the values set in the Flag not all the gates. This can be solved similarly with 1.
  3. This logic seems very strange. I think we should remove this.

Possible solutions for 1.0:

  • Move it from the current package to otelcol and delay the fixes.
  • Fix now.
bogdandrutu added a commit to bogdandrutu/opentelemetry-collector that referenced this issue Mar 11, 2023
Fixes open-telemetry#7042

Uses direct values to/from a given registry. Simplifies usage, defers the "set" logic to the Registry.

Signed-off-by: Bogdan Drutu <[email protected]>
bogdandrutu added a commit to bogdandrutu/opentelemetry-collector that referenced this issue Mar 11, 2023
Fixes open-telemetry#7042

Uses direct values to/from a given registry. Simplifies usage, defers the "set" logic to the Registry.

Signed-off-by: Bogdan Drutu <[email protected]>
bogdandrutu added a commit to bogdandrutu/opentelemetry-collector that referenced this issue Mar 11, 2023
Fixes open-telemetry#7042

Uses direct values to/from a given registry. Simplifies usage, defers the "set" logic to the Registry.

Signed-off-by: Bogdan Drutu <[email protected]>
bogdandrutu added a commit to bogdandrutu/opentelemetry-collector that referenced this issue Mar 11, 2023
Fixes open-telemetry#7042

Uses direct values to/from a given registry. Simplifies usage, defers the "set" logic to the Registry.

Signed-off-by: Bogdan Drutu <[email protected]>
bogdandrutu added a commit that referenced this issue Mar 13, 2023
…7356)

Fixes #7042

Uses direct values to/from a given registry. Simplifies usage, defers the "set" logic to the Registry.

Signed-off-by: Bogdan Drutu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment