Skip to content

Commit

Permalink
fix: skip serialization of span type when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshnj committed Feb 18, 2025
1 parent 305b434 commit b63cfe6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trace-utils/src/span/v04/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pub struct Span {
pub service: BytesString,
pub name: BytesString,
pub resource: BytesString,
#[serde(skip_serializing_if = "BytesString::is_empty")]
pub r#type: BytesString,
pub trace_id: u64,
pub span_id: u64,
Expand Down

0 comments on commit b63cfe6

Please sign in to comment.