From b408f3b67dd65b34c316ad7c611901306bb156e3 Mon Sep 17 00:00:00 2001 From: Matt Klein Date: Tue, 10 Jan 2017 08:02:59 -0800 Subject: [PATCH] stats: fix scope timer prefix Regresion from #334. I'm in the process of rewriting all of the scope stuff currently so I'm not going to bother with tests. I will add tests in the real change. --- source/common/stats/stats_scope_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/stats/stats_scope_impl.h b/source/common/stats/stats_scope_impl.h index 45688cd43d2f7..ca8dc526e792b 100644 --- a/source/common/stats/stats_scope_impl.h +++ b/source/common/stats/stats_scope_impl.h @@ -10,10 +10,10 @@ class ScopeImpl : public Scope { // Stats::Scope void deliverHistogramToSinks(const std::string& name, uint64_t value) override { - parent_.deliverHistogramToSinks(name, value); + parent_.deliverHistogramToSinks(prefix_ + name, value); } void deliverTimingToSinks(const std::string& name, std::chrono::milliseconds ms) { - parent_.deliverTimingToSinks(name, ms); + parent_.deliverTimingToSinks(prefix_ + name, ms); } Counter& counter(const std::string& name) override;