aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/mb_lwtrace.h
blob: 032e1989eab2153608661424c3ec7a6da73996c8 (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(); 
}