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

Correct minor typo in exception raised when exemplar labels too long #773

Merged
merged 1 commit into from
Feb 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion prometheus_client/openmetrics/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _parse_remaining_text(text):
if exemplar_labels is not None:
exemplar_length = sum(len(k) + len(v) for k, v in exemplar_labels.items())
if exemplar_length > 128:
raise ValueError("Exmplar labels are too long: " + text)
raise ValueError("Exemplar labels are too long: " + text)
exemplar = Exemplar(
exemplar_labels,
_parse_value(exemplar_value),
Expand Down