1
- // This file is @generated by prost-build.
2
1
/// TracesData represents the traces data that can be stored in a persistent storage,
3
2
/// OR can be embedded by other protocols that transfer OTLP traces data but do
4
3
/// not implement the OTLP protocol.
@@ -166,6 +165,13 @@ pub struct Span {
166
165
///
167
166
/// This field is semantically required and it is expected that end_time >= start_time.
168
167
#[ prost( fixed64, tag = "7" ) ]
168
+ #[ cfg_attr(
169
+ feature = "with-serde" ,
170
+ serde(
171
+ serialize_with = "crate::proto::serializers::serialize_u64_to_string" ,
172
+ deserialize_with = "crate::proto::serializers::deserialize_string_to_u64"
173
+ )
174
+ ) ]
169
175
pub start_time_unix_nano : u64 ,
170
176
/// end_time_unix_nano is the end time of the span. On the client side, this is the time
171
177
/// kept by the local machine where the span execution ends. On the server side, this
@@ -174,6 +180,13 @@ pub struct Span {
174
180
///
175
181
/// This field is semantically required and it is expected that end_time >= start_time.
176
182
#[ prost( fixed64, tag = "8" ) ]
183
+ #[ cfg_attr(
184
+ feature = "with-serde" ,
185
+ serde(
186
+ serialize_with = "crate::proto::serializers::serialize_u64_to_string" ,
187
+ deserialize_with = "crate::proto::serializers::deserialize_string_to_u64"
188
+ )
189
+ ) ]
177
190
pub end_time_unix_nano : u64 ,
178
191
/// attributes is a collection of key/value pairs. Note, global attributes
179
192
/// like server name can be set using the resource API. Examples of attributes:
@@ -227,6 +240,13 @@ pub mod span {
227
240
pub struct Event {
228
241
/// time_unix_nano is the time the event occurred.
229
242
#[ prost( fixed64, tag = "1" ) ]
243
+ #[ cfg_attr(
244
+ feature = "with-serde" ,
245
+ serde(
246
+ serialize_with = "crate::proto::serializers::serialize_u64_to_string" ,
247
+ deserialize_with = "crate::proto::serializers::deserialize_string_to_u64"
248
+ )
249
+ ) ]
230
250
pub time_unix_nano : u64 ,
231
251
/// name of the event.
232
252
/// This field is semantically required to be set to non-empty string.
0 commit comments