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

fix(l2geth): add an env var METRICS_ENABLE for MetricsEnabledFlag #934

Merged
merged 1 commit into from
May 25, 2021

Conversation

timmyers
Copy link
Contributor

Description
Adds an env var METRICS_ENABLE for the MetricsEnabledFlag CLI arg.

@changeset-bot
Copy link

changeset-bot bot commented May 21, 2021

🦋 Changeset detected

Latest commit: 0ce4cc8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/l2geth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@timmyers timmyers changed the title feat: add an env var METRICS_ENABLE for MetricsEnabledFlag fix: add an env var METRICS_ENABLE for MetricsEnabledFlag May 21, 2021
@timmyers timmyers marked this pull request as ready for review May 21, 2021 17:45
@timmyers timmyers changed the title fix: add an env var METRICS_ENABLE for MetricsEnabledFlag fix(l2geth): add an env var METRICS_ENABLE for MetricsEnabledFlag May 21, 2021
@tynes
Copy link
Contributor

tynes commented May 21, 2021

Thanks for the PR @timmyers! Will merge this. Wondering your thoughts on using environment variables vs CLI flags for configuration - we are considering the removal of env var based configuration when we migrate to using the latest version of go-ethereum as to reduce the diff as much as possible

@timmyers
Copy link
Contributor Author

I prefer env vars, I find them to be the cleanest, especially when defining (kubernetes) manifests as code.
It would be great if we could make some effort to upstream env var support into geth.

@tynes
Copy link
Contributor

tynes commented May 24, 2021

I prefer env vars, I find them to be the cleanest, especially when defining (kubernetes) manifests as code.
It would be great if we could make some effort to upstream env var support into geth.

This has been suggested upstream before ethereum/go-ethereum#14346

@tynes tynes merged commit 4e6c3f9 into ethereum-optimism:develop May 25, 2021
@timmyers timmyers deleted the metrics-flag branch May 25, 2021 15:08
@timmyers
Copy link
Contributor Author

Ah I see. Well CLI args are definitely workable if at some point you want to remove them to slim the diff. The config file option is by far the worst to work with for me.

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