From f5c0a424da7a3e64fe4d744fec3f945f08079b83 Mon Sep 17 00:00:00 2001
From: ___ <spark.did.a.code@gmail.com>
Date: Fri, 3 Mar 2023 15:49:29 +0000
Subject: [PATCH] Add span IDs to event JSON format

---
 tracing-subscriber/src/fmt/format/json.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tracing-subscriber/src/fmt/format/json.rs b/tracing-subscriber/src/fmt/format/json.rs
index f4e61fb123..64cefe72ef 100644
--- a/tracing-subscriber/src/fmt/format/json.rs
+++ b/tracing-subscriber/src/fmt/format/json.rs
@@ -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()
     }