Skip to content
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

Merged
merged 3 commits into from
Oct 17, 2017

Conversation

longquanzheng
Copy link
Collaborator

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 66.346% when pulling ead094a on longquanzheng:master into 46de15c on uber:master.

"github.com/stretchr/testify/assert"
)

func TestMetricNameWithTags(t *testing.T) {
Copy link
Contributor

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 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@@ -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{})
Copy link
Contributor

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

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 66.302% when pulling d75fc47 on longquanzheng:master into 46de15c on uber:master.

@longquanzheng longquanzheng merged commit 949009e into uber:master Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants