Create a span patch with portable semantic-owner support.
(prior_metadata: Vec<u8>, ops: Vec<SpanOp>)
| 121 | impl SpanPatch { |
| 122 | /// Create a span patch with portable semantic-owner support. |
| 123 | pub fn new(prior_metadata: Vec<u8>, ops: Vec<SpanOp>) -> Self { |
| 124 | Self { |
| 125 | version: VERSION, |
| 126 | prior_metadata, |
| 127 | ops, |
| 128 | semantic_owners: Vec::new(), |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | /// Encode the canonical span payload. |
| 133 | pub fn encode(&self) -> Result<Vec<u8>, SpanPatchError> { |
nothing calls this directly
no outgoing calls
no test coverage detected