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

Properly handle a parsing edge case #7717

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Properly handle a parsing edge case #7717

merged 1 commit into from
Oct 6, 2020

Conversation

ofek
Copy link
Contributor

@ofek ofek commented Oct 5, 2020

Motivation

Resolves #7686

Additional Notes

A subsequent PR will add the new metrics

@ofek ofek requested a review from a team as a code owner October 5, 2020 15:33
@ghost ghost added the integration/envoy label Oct 5, 2020
@@ -41,6 +41,10 @@ def parse_metric(metric, metric_mapping=METRIC_TREE):
if metric_part in metric_mapping and num_tags >= minimum_tag_length:
# Rebuild any built up tags whenever we encounter a known metric part.
if tag_builder:
# Edge case where we hit a known metric part after a sequence of all unknown parts
if '|_tags_|' not in metric_mapping:
raise UnknownMetric
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought this was not correct but seems that the PEP to make it incorrect got rejected https://www.python.org/dev/peps/pep-0317 :p

@ofek ofek merged commit 676c371 into master Oct 6, 2020
@ofek ofek deleted the ofek/e branch October 6, 2020 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Envoy check crashes when collecting metrics from Istio Envoy
2 participants