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

Deprecate global flag in featuregates #5060

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

bogdandrutu
Copy link
Member

Distributions that build without the builder will need to declare it as they do for "config" and "set".

Signed-off-by: Bogdan Drutu [email protected]

@bogdandrutu bogdandrutu requested review from a team and codeboten March 22, 2022 15:31
@@ -88,6 +90,7 @@ func (s *WindowsService) start(elog *eventlog.Log, colErrorChannel chan error) e
if err := flags().Parse(os.Args[1:]); err != nil {
return err
}
featuregate.Apply(gatesList)
Copy link
Member Author

Choose a reason for hiding this comment

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

This PR also fixes the use of featuregates on windows, where the gate flag was not applied.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updates #4967

@bogdandrutu bogdandrutu force-pushed the deprecateglobalflag branch from af0f971 to 37b854b Compare March 22, 2022 15:35
@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #5060 (580c271) into main (68374a6) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5060      +/-   ##
==========================================
+ Coverage   91.03%   91.07%   +0.04%     
==========================================
  Files         180      180              
  Lines       10810    10814       +4     
==========================================
+ Hits         9841     9849       +8     
+ Misses        750      747       -3     
+ Partials      219      218       -1     
Impacted Files Coverage Δ
service/featuregate/flags.go 100.00% <ø> (ø)
service/command.go 82.35% <100.00%> (ø)
service/flags.go 88.46% <100.00%> (+2.09%) ⬆️
model/internal/pdata/common.go 94.26% <0.00%> (+0.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68374a6...580c271. Read the comment docs.

Distributions that build without the builder will need to declare it as they do for "config" and "set".

Signed-off-by: Bogdan Drutu <[email protected]>
@bogdandrutu bogdandrutu force-pushed the deprecateglobalflag branch from 37b854b to 580c271 Compare March 22, 2022 15:36
@bogdandrutu bogdandrutu merged commit 89da10b into open-telemetry:main Mar 23, 2022
@bogdandrutu bogdandrutu deleted the deprecateglobalflag branch March 23, 2022 09:38
Nicholaswang pushed a commit to Nicholaswang/opentelemetry-collector that referenced this pull request Jun 7, 2022
Distributions that build without the builder will need to declare it as they do for "config" and "set".

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants