aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/mb_lwtrace.h
blob: 597a02e7a69f49a1617b6d1bf556789f86379c58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

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

#include <util/generic/string.h>

#define LWTRACE_MESSAGEBUS_PROVIDER(PROBE, EVENT, GROUPS, TYPES, NAMES)                                          \
    PROBE(Error, GROUPS("MessagebusRare"), TYPES(TString, TString, TString), NAMES("status", "address", "misc")) \ 
    PROBE(ServerUnknownVersion, GROUPS("MessagebusRare"), TYPES(TString, ui32), NAMES("address", "version"))     \
    PROBE(Accepted, GROUPS("MessagebusRare"), TYPES(TString), NAMES("address"))                                  \
    PROBE(Disconnected, GROUPS("MessagebusRare"), TYPES(TString), NAMES("address"))                              \
    PROBE(Read, GROUPS(), TYPES(ui32), NAMES("size"))                                                            \
    /**/

LWTRACE_DECLARE_PROVIDER(LWTRACE_MESSAGEBUS_PROVIDER)

namespace NBus {
    void InitBusLwtrace();
}