You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// An event describing a specific moment in time on a span and associated attributes.
45
-
recordevent {
46
-
/// Event name
47
-
name:string,
48
-
/// Event time
49
-
time:datetime,
50
-
/// Event attributes
51
-
attributes:list<key-value>,
44
+
/// Identifying trace information about a span that can be serialized and propagated.
45
+
recordspan-context {
46
+
/// The `trace-id` for this `span-context`.
47
+
trace-id:trace-id,
48
+
/// The `span-id` for this `span-context`.
49
+
span-id:span-id,
50
+
/// The `trace-flags` for this `span-context`.
51
+
trace-flags:trace-flags,
52
+
/// Whether this `span-context` was propagated from a remote parent.
53
+
is-remote:bool,
54
+
/// The `trace-state` for this `span-context`.
55
+
trace-state:trace-state,
52
56
}
53
57
54
-
/// Describes a relationship to another `span`.
55
-
recordlink {
56
-
/// Denotes which `span` to link to.
57
-
span-context:span-context,
58
-
/// Attributes describing the link.
59
-
attributes:list<key-value>,
58
+
/// The trace that this `span-context` belongs to.
59
+
///
60
+
/// 16 bytes encoded as a hexadecimal string.
61
+
typetrace-id = string;
62
+
63
+
/// The id of this `span-context`.
64
+
///
65
+
/// 8 bytes encoded as a hexadecimal string.
66
+
typespan-id = string;
67
+
68
+
/// Flags that can be set on a `span-context`.
69
+
flagstrace-flags {
70
+
/// Whether the `span` should be sampled or not.
71
+
sampled,
60
72
}
61
73
74
+
/// Carries system-specific configuration data, represented as a list of key-value pairs. `trace-state` allows multiple tracing systems to participate in the same trace.
75
+
///
76
+
/// If any invalid keys or values are provided then the `trace-state` will be treated as an empty list.
77
+
typetrace-state = list<tuple<string, string>>;
78
+
62
79
/// Describes the relationship between the Span, its parents, and its children in a trace.
63
80
enumspan-kind {
64
81
/// Indicates that the span describes a request to some remote service. This span is usually the parent of a remote server span and does not end until the response is received.
@@ -73,16 +90,6 @@ interface tracing {
73
90
internal
74
91
}
75
92
76
-
/// The `status` of a `span`.
77
-
variantstatus {
78
-
/// The default status.
79
-
unset,
80
-
/// The operation has been validated by an Application developer or Operator to have completed successfully.
81
-
ok,
82
-
/// The operation contains an error with a description.
83
-
error(string),
84
-
}
85
-
86
93
/// A key-value pair describing an attribute.
87
94
recordkey-value {
88
95
/// The attribute name.
@@ -114,42 +121,35 @@ interface tracing {
114
121
s64-array(list<s64>),
115
122
}
116
123
117
-
/// Identifying trace information about a span that can be serialized and propagated.
118
-
recordspan-context {
119
-
/// The `trace-id` for this `span-context`.
120
-
trace-id:trace-id,
121
-
/// The `span-id` for this `span-context`.
122
-
span-id:span-id,
123
-
/// The `trace-flags` for this `span-context`.
124
-
trace-flags:trace-flags,
125
-
/// Whether this `span-context` was propagated from a remote parent.
126
-
is-remote:bool,
127
-
/// The `trace-state` for this `span-context`.
128
-
trace-state:trace-state,
124
+
/// An event describing a specific moment in time on a span and associated attributes.
125
+
recordevent {
126
+
/// Event name
127
+
name:string,
128
+
/// Event time
129
+
time:datetime,
130
+
/// Event attributes
131
+
attributes:list<key-value>,
129
132
}
130
133
131
-
/// The trace that this `span-context` belongs to.
132
-
///
133
-
/// 16 bytes encoded as a hexadecimal string.
134
-
typetrace-id = string;
135
-
136
-
/// The id of this `span-context`.
137
-
///
138
-
/// 8 bytes encoded as a hexadecimal string.
139
-
typespan-id = string;
140
-
141
-
/// Flags that can be set on a `span-context`.
142
-
flagstrace-flags {
143
-
/// Whether the `span` should be sampled or not.
144
-
sampled,
134
+
/// Describes a relationship to another `span`.
135
+
recordlink {
136
+
/// Denotes which `span` to link to.
137
+
span-context:span-context,
138
+
/// Attributes describing the link.
139
+
attributes:list<key-value>,
145
140
}
146
141
147
-
/// Carries system-specific configuration data, represented as a list of key-value pairs. `trace-state` allows multiple tracing systems to participate in the same trace.
148
-
///
149
-
/// If any invalid keys or values are provided then the `trace-state` will be treated as an empty list.
150
-
typetrace-state = list<tuple<string, string>>;
142
+
/// The `status` of a `span`.
143
+
variantstatus {
144
+
/// The default status.
145
+
unset,
146
+
/// The operation has been validated by an Application developer or Operator to have completed successfully.
147
+
ok,
148
+
/// The operation contains an error with a description.
149
+
error(string),
150
+
}
151
151
152
-
/// TODO
152
+
/// Describes the instrumentation scope that produced a span.
0 commit comments