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