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

re: removing histograms, tweaking runtime access #19972

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

alyssawilk
Copy link
Contributor

Risk Level: low
Testing: n/a
Docs Changes: n/a
Release Notes: inline
Part of #19847

jmarantz
jmarantz previously approved these changes Feb 15, 2022
@@ -22,7 +22,8 @@ bool runtimeFeatureEnabled(absl::string_view feature) {
}

uint64_t getInteger(absl::string_view feature, uint64_t default_value) {
ASSERT(absl::StartsWith(feature, "envoy."));
ASSERT(absl::StartsWith(feature, "envoy.") ||
absl::StartsWith(feature, "re2."));
Copy link
Contributor

Choose a reason for hiding this comment

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

How did this work before?

Copy link
Contributor Author

@alyssawilk alyssawilk Feb 15, 2022

Choose a reason for hiding this comment

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

It used the singleton but didn't use the "approved" methods, but instead used the instance function runtime->getInteger() as a workaround to the guards I put in place to have people not do this :-(

Signed-off-by: Alyssa Wilk <[email protected]>
@alyssawilk alyssawilk merged commit 2484025 into envoyproxy:main Feb 16, 2022
@alyssawilk alyssawilk deleted the regex branch August 4, 2022 00:59
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