aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/dnscachelib/probes.h
blob: 313b7b87129c52bab2e2c70d1c3b23f367fb04ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once

#include <library/cpp/lwtrace/all.h>

#define DNSCACHELIB_PROVIDER(PROBE, EVENT, GROUPS, TYPES, NAMES)           \
    PROBE(Created, GROUPS(), TYPES(), NAMES())                             \
    PROBE(Destroyed, GROUPS(), TYPES(), NAMES())                           \
    PROBE(AresInitFailed, GROUPS(), TYPES(), NAMES())                      \
    PROBE(FamilyMismatch,                                                  \
          GROUPS(),                                                        \
          TYPES(int, bool, bool),                                          \
          NAMES("family", "allowIpV4", "allowIpV6"))                       \
    PROBE(ResolveNullHost,                                                 \
          GROUPS(),                                                        \
          TYPES(TString, int),                                             \
          NAMES("hostname", "family"))                                     \
    PROBE(ResolveFromCache,                                                \
          GROUPS(),                                                        \
          TYPES(TString, int, TString, TString, ui64),                     \
          NAMES("hostname", "family", "addrsV4", "addrsV6", "aCacheHits")) \
    PROBE(ResolveDone,                                                     \
          GROUPS(),                                                        \
          TYPES(TString, int, TString, TString),                           \
          NAMES("hostname", "family", "addrsV4", "addrsV6"))               \
    PROBE(ResolveCacheTimeout,                                             \
          GROUPS(),                                                        \
          TYPES(TString),                                                  \
          NAMES("hostname"))                                               \
    PROBE(ResolveCacheNew,                                                 \
          GROUPS(),                                                        \
          TYPES(TString),                                                  \
          NAMES("hostname"))                                               \
    /**/

LWTRACE_DECLARE_PROVIDER(DNSCACHELIB_PROVIDER)