diff options
Diffstat (limited to 'common/rust/src/payloads.rs')
| -rw-r--r-- | common/rust/src/payloads.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/rust/src/payloads.rs b/common/rust/src/payloads.rs index 1957077..6eb35c8 100644 --- a/common/rust/src/payloads.rs +++ b/common/rust/src/payloads.rs @@ -4,6 +4,12 @@ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, Clone)] #[serde(bound(deserialize = "T: Deserialize<'de> + std::default::Default + Clone"))] pub struct CachePayload<T> { - pub tracing: (), + pub tracing: Tracing, pub data: T } + +#[derive(Serialize, Deserialize, Debug, Clone)] +pub struct Tracing { + pub node_id: String, + pub span: Option<String> +}
\ No newline at end of file |
