Skip to content

Commit

Permalink
Correct minor typo in exception raised when exemplar labels too long
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Skillington <rob@chronosphere.io>
  • Loading branch information
robskillington committed Feb 16, 2022
1 parent 4e0e7ff commit 7b49004
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 7b49004

Please sign in to comment.