]>
git.proxmox.com Git - ceph.git/blob - ceph/src/blkin/blkin-lib/zipkin_trace.h
2 * Zipkin lttng-ust tracepoint provider.
5 #undef TRACEPOINT_PROVIDER
6 #define TRACEPOINT_PROVIDER zipkin
8 #undef TRACEPOINT_INCLUDE
9 #define TRACEPOINT_INCLUDE "./zipkin_trace.h"
11 #if !defined(_ZIPKIN_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
14 #include <lttng/tracepoint.h>
19 TP_ARGS(const char *, trace_name
, const char *, service
,
20 int, port
, const char *, ip
, long, trace
,
21 long, span
, long, parent_span
,
22 const char *, key
, const char *, val
),
26 * Each span has a name mentioned on it in the UI
27 * This is the trace name
29 ctf_string(trace_name
, trace_name
)
31 * Each trace takes place in a specific machine-endpoint
32 * This is identified by a name, a port number and an ip
34 ctf_string(service_name
, service
)
35 ctf_integer(int, port_no
, port
)
38 * According to the tracing semantics each trace should have
39 * a trace id, a span id and a parent span id
41 ctf_integer(long, trace_id
, trace
)
42 ctf_integer(long, span_id
, span
)
43 ctf_integer(long, parent_span_id
, parent_span
)
45 * The following is the real annotated information
57 * This tracepoint allows for integers to come out keyval
63 TP_ARGS(const char *, trace_name
, const char *, service
,
64 int, port
, const char *, ip
, long, trace
,
65 long, span
, long, parent_span
,
66 const char *, key
, int64_t, val
),
70 * Each span has a name mentioned on it in the UI
71 * This is the trace name
73 ctf_string(trace_name
, trace_name
)
75 * Each trace takes place in a specific machine-endpoint
76 * This is identified by a name, a port number and an ip
78 ctf_string(service_name
, service
)
79 ctf_integer(int, port_no
, port
)
82 * According to the tracing semantics each trace should have
83 * a trace id, a span id and a parent span id
85 ctf_integer(long, trace_id
, trace
)
86 ctf_integer(long, span_id
, span
)
87 ctf_integer(long, parent_span_id
, parent_span
)
89 * The following is the real annotated information
92 ctf_integer(int64_t, val
, val
)
100 * In this event we follow the same semantics but we trace timestamp
107 TP_ARGS(const char *, trace_name
, const char *, service
,
108 int, port
, const char *, ip
, long, trace
,
109 long, span
, long, parent_span
,
110 const char *, event
),
113 ctf_string(trace_name
, trace_name
)
114 ctf_string(service_name
, service
)
115 ctf_integer(int, port_no
, port
)
117 ctf_integer(long, trace_id
, trace
)
118 ctf_integer(long, span_id
, span
)
119 ctf_integer(long, parent_span_id
, parent_span
)
120 ctf_string(event
, event
)
127 #endif /* _ZIPKIN_H */
129 #include <lttng/tracepoint-event.h>