MM-21922: Add metrics for http verb (#13679)

* MM-21922: Add metrics for http verb

* Use multiple params

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2020-01-28 08:52:00 +05:30
коммит произвёл GitHub
родитель 815e6b5956
Коммит 11d15107b0
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@@ -43,8 +43,8 @@ type MetricsInterface interface {
IncrementPostsSearchCounter()
ObservePostsSearchDuration(elapsed float64)
ObserveStoreMethodDuration(method string, success string, elapsed float64)
ObserveApiEndpointDuration(endpoint string, elapsed float64)
ObserveStoreMethodDuration(method, success string, elapsed float64)
ObserveApiEndpointDuration(endpoint, method string, elapsed float64)
IncrementPostIndexCounter()
IncrementUserIndexCounter()
IncrementChannelIndexCounter()