rcrowley / go-metrics

Go port of Coda Hale's Metrics library
Other
3.46k stars 494 forks source link

Make instance of exp available outside of package #217

Open svar29 opened 7 years ago

svar29 commented 7 years ago

If someone is using a different http server (fasthttp instead of net/http), then we need to create instance of exp manually and control syncToExpvar in Handler. So a public method to return instance of exp will help here.