-
Notifications
You must be signed in to change notification settings - Fork 801
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
Extend statsd reporter to having tags appended to metric names #378
Conversation
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestMetricNameWithTags(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also add a separate test to validate output of metricNameWithTags ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
common/service/config/metrics.go
Outdated
@@ -72,7 +73,7 @@ func (c *Metrics) newStatsdScope() tally.Scope { | |||
if err != nil { | |||
log.Fatalf("error creating statsd client, err=%v", err) | |||
} | |||
reporter := statsdreporter.NewReporter(statter, statsdreporter.Options{}) | |||
reporter := statsdreporter.NewReporter(statter, tallystatsdreporter.Options{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment here for why we don't use the default tally.statsd implementation
No description provided.