Skip to content

Commit

Permalink
remove _
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyassrivatsan committed May 14, 2019
1 parent 426224b commit 4a2b15a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions common/service/config/metrics.go
Expand Up @@ -41,20 +41,20 @@ import (
// but this is necessary as the same prom client initialization is used by
// our system workflows.
var (
_safeCharacters = []rune{'_'}
safeCharacters = []rune{'_'}

_sanitizeOptions = tally.SanitizeOptions{
sanitizeOptions = tally.SanitizeOptions{
NameCharacters: tally.ValidCharacters{
Ranges: tally.AlphanumericRange,
Characters: _safeCharacters,
Characters: safeCharacters,
},
KeyCharacters: tally.ValidCharacters{
Ranges: tally.AlphanumericRange,
Characters: _safeCharacters,
Characters: safeCharacters,
},
ValueCharacters: tally.ValidCharacters{
Ranges: tally.AlphanumericRange,
Characters: _safeCharacters,
Characters: safeCharacters,
},
ReplacementCharacter: tally.DefaultReplacementCharacter,
}
Expand Down Expand Up @@ -136,7 +136,7 @@ func (c *Metrics) newPrometheusScope(logger log.Logger) tally.Scope {
Tags: c.Tags,
CachedReporter: reporter,
Separator: prometheus.DefaultSeparator,
SanitizeOptions: &_sanitizeOptions,
SanitizeOptions: &sanitizeOptions,
}
scope, _ := tally.NewRootScope(scopeOpts, time.Second)
return scope
Expand Down

0 comments on commit 4a2b15a

Please sign in to comment.