aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/probes.h
blob: 68810bd118211cfa8800d3fa913a871083136388 (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
#pragma once

#include "all.h"

#define LWTRACE_INTERNAL_PROVIDER(PROBE, EVENT, GROUPS, TYPES, NAMES)    \
    PROBE(PerfReport, GROUPS(),                                          \
          TYPES(double, double, double, double),                         \
          NAMES("probeShare", "probeMinMs", "probeMaxMs", "probeAvgMs")) \
    PROBE(DeserializationError, GROUPS("LWTraceError"),                  \
          TYPES(TString, TString),                                       \
          NAMES("probeName", "providerName"))                            \
    PROBE(Fork, GROUPS(),                                                \
          TYPES(ui64),                                                   \
          NAMES("spanId"))                                               \
    PROBE(Join, GROUPS(),                                                \
          TYPES(ui64, ui64),                                             \
          NAMES("spanId", "trackLength"))                                \
    PROBE(OrbitIsUsedConcurrentlyError, GROUPS("LWTraceError"),          \
          TYPES(TString),                                                \
          NAMES("backtrace"))                                            \
    /**/

LWTRACE_DECLARE_PROVIDER(LWTRACE_INTERNAL_PROVIDER)