Skip to content

Commit 4c831d1

Browse files
Skip serializing parent-id when null (#879)
1 parent 7a481f8 commit 4c831d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

trace-utils/src/span_v04/span.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub struct Span {
5757
pub r#type: BytesString,
5858
pub trace_id: u64,
5959
pub span_id: u64,
60+
#[serde(skip_serializing_if = "is_default")]
6061
pub parent_id: u64,
6162
pub start: i64,
6263
pub duration: i64,

0 commit comments

Comments
 (0)