opentelemetry-rust
opentelemetry-rust copied to clipboard
SpanContext should implement serde::Serialize, Deserialize
Per Rust API Guidelines for Interoperability I think SpanContext
should implement serde::Serialize
and Deserialize
.
I'll see about making this contribution myself, but wanted to open the issue in case there is disagreement with the approach. (From my understanding, we want to prefer idiomatic usage of the language features for the API.) This will help me and others in building domain-specific propagators ala .with_remote_span_context
.
Closing this in favor of discussion on #1075.
Sorry, I missed that #1075 is the PR for fixing this.