Skip to content

Commit

Permalink
Change the default escape method to DotsEscaping
Browse files Browse the repository at this point in the history
fixes #689

Signed-off-by: Owen Williams <[email protected]>
  • Loading branch information
ywwg committed Sep 4, 2024
1 parent 4f8e8f4 commit 4b29303
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions model/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ var (
// goroutines are started.
NameValidationScheme = LegacyValidation

// NameEscapingScheme defines the default way that names will be
// escaped when presented to systems that do not support UTF-8 names. If the
// Content-Type "escaping" term is specified, that will override this value.
NameEscapingScheme = ValueEncodingEscaping
// NameEscapingScheme defines the default way that names will be escaped when
// presented to systems that do not support UTF-8 names. If the Content-Type
// "escaping" term is specified, that will override this value.
// NameEscapingScheme should not be set to the NoEscaping value. That string
// is used in content negotiation to indicate that a system supports UTF-8 and
// has that feature enabled.
NameEscapingScheme = DotsEscaping
)

// ValidationScheme is a Go enum for determining how metric and label names will
Expand Down

0 comments on commit 4b29303

Please sign in to comment.