aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/core/tx/datashard/probes.h
blob: 26bf44e87de6211bcf93c789e9345e13a6b78f49 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#pragma once

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

#define DATASHARD_PROVIDER(PROBE, EVENT, GROUPS, TYPES, NAMES)                 \
    PROBE(ProposeTransactionRequest,                                           \
        GROUPS("DataShard", "LWTrackStart"),                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ProposeTransactionWaitMediatorState,                                 \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ProposeTransactionWaitDelayers,                                      \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ProposeTransactionWaitSnapshot,                                      \
        GROUPS("DataShard"),                                                   \
        TYPES(ui64, ui64),                                                     \
        NAMES("snapshotStep", "snapshotTxId"))                                 \
    PROBE(ProposeTransactionReject,                                            \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ProposeTransactionEnqueue,                                           \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ProposeTransactionParsed,                                            \
        GROUPS("DataShard"),                                                   \
        TYPES(bool),                                                           \
        NAMES("success"))                                                      \
    PROBE(ProposeTransactionKqpDataExecute,                                    \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ProposeTransactionSendResult,                                        \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ReadRequest,                                                         \
        GROUPS("DataShard", "LWTrackStart"),                                   \
        TYPES(ui64),                                                           \
        NAMES("readId"))                                                       \
    PROBE(ReadWaitMediatorState,                                               \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ReadWaitSnapshot,                                                    \
        GROUPS("DataShard"),                                                   \
        TYPES(ui64, ui64),                                                     \
        NAMES("snapshotStep", "snapshotTxId"))                                 \
    PROBE(ReadExecute,                                                         \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ReadSendResult,                                                      \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ReadAck,                                                             \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
    PROBE(ReadCancel,                                                          \
        GROUPS("DataShard"),                                                   \
        TYPES(),                                                               \
        NAMES())                                                               \
// DATASHARD_PROVIDER

LWTRACE_DECLARE_PROVIDER(DATASHARD_PROVIDER)

namespace NKikimr::NDataShard {

    void RegisterDataShardProbes();

}