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
//! Dial9 conventions layered on top of free-form trace schema annotations.
//!
//! The wire format treats annotation keys and values as opaque strings. This
//! module is the shared vocabulary used by Dial9 producers and consumers.
/// Annotation key assigning a structural role to a field.
pub const ROLE_KEY: &str = "dial9.role";
/// Annotation key carrying the producer or instrumentation family for a span.
pub const SPAN_TYPE_KEY: &str = "dial9.span.type";
/// Span type used when a single-event span schema does not declare a producer
/// or instrumentation family.
pub const DEFAULT_SPAN_TYPE: &str = "single-event";
/// Values emitted under [`SPAN_TYPE_KEY`].
/// Values recognized under [`ROLE_KEY`].