2022-11-04 09:52:27 +00:00
|
|
|
when (NimMajor, NimMinor) < (1, 4):
|
|
|
|
{.push raises: [Defect].}
|
|
|
|
else:
|
|
|
|
{.push raises: [].}
|
2022-10-20 16:09:40 +00:00
|
|
|
|
|
|
|
import metrics
|
|
|
|
|
|
|
|
|
|
|
|
declarePublicGauge waku_store_errors, "number of store protocol errors", ["type"]
|
|
|
|
declarePublicGauge waku_store_queries, "number of store queries received"
|
|
|
|
|
|
|
|
|
|
|
|
# Error types (metric label values)
|
|
|
|
const
|
|
|
|
dialFailure* = "dial_failure"
|
|
|
|
decodeRpcFailure* = "decode_rpc_failure"
|
2022-11-09 17:50:18 +00:00
|
|
|
peerNotFoundFailure* = "peer_not_found_failure"
|
|
|
|
emptyRpcQueryFailure* = "empty_rpc_query_failure"
|
2022-11-24 18:42:19 +00:00
|
|
|
emptyRpcResponseFailure* = "empty_rpc_response_failure"
|