1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
//! # OpenTelemetry Experimental Propagator interface //! //! ## Binary Format //! //! `BinaryFormat` is a formatter to serialize and deserialize a value //! into a binary format. //! //! `BinaryFormat` MUST expose the APIs that serializes values into bytes, //! and deserializes values from bytes. //! //! ### ToBytes //! //! Serializes the given value into the on-the-wire representation. //! //! Required arguments: //! //! - the value to serialize, can be `SpanReference` or `DistributedContext`. //! //! Returns the on-the-wire byte representation of the value. //! //! ### FromBytes //! //! Creates a value from the given on-the-wire encoded representation. //! //! If the value could not be parsed, the underlying implementation //! SHOULD decide to return ether an empty value, an invalid value, or //! a valid value. //! //! Required arguments: //! //! - on-the-wire byte representation of the value. //! //! Returns a value deserialized from bytes. //! #[cfg(feature = "base64")] pub mod base64_format; pub mod binary_propagator;