Skip to content

WiP stats: Force enable stats - #14120

Closed
jmarantz wants to merge 10 commits into
envoyproxy:mainfrom
jmarantz:force-enable-stats
Closed

jmarantz wants to merge 10 commits into
envoyproxy:mainfrom
jmarantz:force-enable-stats

Conversation

@jmarantz

@jmarantz jmarantz commented Nov 20, 2020 •

Copy link
Copy Markdown
Contributor

Commit Message: Adds a creation-mode enum to methods to construct stats. The enum includes a ForceEnable which makes a stat ineligible for exclusion via a StatsMatcher configuration. This in turn allows for use of stats functionally during operation in the proxy.
Additional Description: We are debating whether this added complexity is worth the benefit, but maybe it makes sense just to open it up for review. I'm OK leaving this on hold until there's a compelling use-case.
Additional Description: See https://docs.google.com/document/d/1CnyeIi5hMBqXZRKm-0_yW3yy69HM80BHg-EGwkJb-qw/edit?usp=sharing for a more detailed discussion.
Risk Level: low
Testing: //test/...
Docs Changes: needed before submitting, as we should describe in the StatsMatcher doc that the intent can be overridden by functional needs.
Release Notes: n/a
Platform Specific Features: n/a
Fixes #14051

@mattklein123 mattklein123 self-assigned this Nov 20, 2020
@mattklein123

Copy link
Copy Markdown
Member

@jmarantz I think we should have a discussion on whether we want to do this at all. I'm of 2 minds here. One hand I think it's pragmatic as there may be significant duplication if we assume we can never use stats for logic. On the other hand it feels pretty hacky.

@envoyproxy/maintainers any thoughts on this?

@jmarantz

Copy link
Copy Markdown
Contributor Author

I'm ok either way... It is mostly working but it is just another layer of hack.

@jmarantz

Copy link
Copy Markdown
Contributor Author

@mattklein123 this is mostly ready to go if we decide it makes sense to proceed. I will update doc if it looks like we want to go in that direction, but I think the code is mostly in shape now.

@mattklein123

Copy link
Copy Markdown
Member

My thinking is to put this on hold unless we have a use case we know we want to do? I know there are open issues with features not working because of this underlying issue, but I'm not sure if we should just fix them or go down this path. Would definitely like to hear from others on this.

@jmarantz

jmarantz commented Nov 23, 2020 via email

Copy link
Copy Markdown
Contributor Author

@jmarantz jmarantz added the no stalebot Disables stalebot from closing an issue label Dec 17, 2020
@mattklein123

Copy link
Copy Markdown
Member

@jmarantz wdyt about putting together a short doc on our options for dealing with this issue that we can circulate? I think we probably need to go through a design phase for this one?

/wait

Base automatically changed from master to main January 15, 2021 23:01
@mattklein123 mattklein123 removed the no stalebot Disables stalebot from closing an issue label Feb 16, 2022
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale stalebot believes this issue/PR has not been touched recently label Mar 18, 2022
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot closed this Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale stalebot believes this issue/PR has not been touched recently waiting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stats: prevent disabling some stats

2 participants