Skip to content

Commit

Permalink
Add span IDs to event JSON format
Browse files Browse the repository at this point in the history
  • Loading branch information
goodspark committed Mar 3, 2023
1 parent a0126b2 commit f5c0a42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tracing-subscriber/src/fmt/format/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ where
// that the fields are not supposed to be missing.
Err(e) => serializer.serialize_entry("field_error", &format!("{}", e))?,
};
serializer.serialize_entry("id", &self.0.id().into_u64())?;
serializer.serialize_entry("name", self.0.metadata().name())?;
serializer.end()
}
Expand Down

0 comments on commit f5c0a42

Please sign in to comment.