Open ghost opened 9 years ago
Looks fine, except the sampling rate shouldn't be hard-coded, it should be a config value so we can determine it when we deploy.
@bbangert Sounds good. Do you think a single config value for all metrics should be sufficient? Does the sampling logic look sound?
@kitcambridge I think a single value for the heaviest usage ones is fine. Sampling logic looks sound. I am curious about how much faster the stats might be if they stopped doing all that inefficient string concat.
Metrics.IncrementByRate()
andTimerByRate()
for specifying the sampling rate.IncrementByRate()
would callStatsClient.Dec()
with a negative value.TestMetrics
with aStatsClient
interface.Closes #177.