userver: userver/dist_lock/statistics.hpp Source File
Loading...
Searching...
No Matches
statistics.hpp
1#pragma once
2
3#include <cstddef>
4
5#include <userver/utils/statistics/relaxed_counter.hpp>
6
7USERVER_NAMESPACE_BEGIN
8
9namespace dist_lock {
10
11struct Statistics {
12 utils::statistics::RelaxedCounter<size_t> lock_successes{0};
13 utils::statistics::RelaxedCounter<size_t> lock_failures{0};
14 utils::statistics::RelaxedCounter<size_t> watchdog_triggers{0};
15 utils::statistics::RelaxedCounter<size_t> brain_splits{0};
16 utils::statistics::RelaxedCounter<size_t> task_failures{0};
17};
18
19} // namespace dist_lock
20
21USERVER_NAMESPACE_END