diff options
author | George Goldberg <george@gberg.me> | 2017-09-25 21:44:44 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-25 13:44:44 -0700 |
commit | e8ca3d64f46d08dbdc3c0d8921ffc1a798104a32 (patch) | |
tree | 35cb0339dae9a6d6be4159d6bf82717796fdf810 /einterfaces/metrics.go | |
parent | 81c18a01bd22437457da04b6cdb8d409beb54446 (diff) | |
download | chat-e8ca3d64f46d08dbdc3c0d8921ffc1a798104a32.tar.gz chat-e8ca3d64f46d08dbdc3c0d8921ffc1a798104a32.tar.bz2 chat-e8ca3d64f46d08dbdc3c0d8921ffc1a798104a32.zip |
PLT-7470: Add metrics for searches. (#7507)
Diffstat (limited to 'einterfaces/metrics.go')
-rw-r--r-- | einterfaces/metrics.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/einterfaces/metrics.go b/einterfaces/metrics.go index 58a803067..a88fe63cf 100644 --- a/einterfaces/metrics.go +++ b/einterfaces/metrics.go @@ -37,4 +37,7 @@ type MetricsInterface interface { AddMemCacheHitCounter(cacheName string, amount float64) AddMemCacheMissCounter(cacheName string, amount float64) + + IncrementPostsSearchCounter() + ObservePostsSearchDuration(elapsed float64) } |