segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

engine: add pkg level WithTags #30

Closed yields closed 7 years ago

f2prateek commented 7 years ago

Feels like you could just do stats.DefaultEngine.WithTags(tags...) instead of stats.WithTags(tags...). You save typing out .DefaultEngine, but probably worth it if this is a common use case.

Code LGTM!

yields commented 7 years ago

stats.DefaultEngine.WithTags(tags...)

Exactly what I want to avoid :P