Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Allow any unicode characters in the TagValue
Browse files Browse the repository at this point in the history
Prometheus permits any characters:
https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels

In gRPC propagation, the tags are binary encoded as UTF-8 strings,
so there should be no problem there. For HTTP, we can use mime
encoding.
  • Loading branch information
Ramon Nogueira committed Mar 19, 2018
1 parent d218d58 commit 2935694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tags/TagContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ A string or string wrapper, with some restrictions:

## TagValue

A string or string wrapper with the same restrictions as `TagKey`, except that it
is allowed to be empty.
A TagValue can be any unicode string. It's size when encoded in UTF-8
should be less than 256 bytes. An empty value is allowed.

## Serialization

Expand Down

0 comments on commit 2935694

Please sign in to comment.