Encode span attributes to binary format.
(attributes: Dict[str, Any])
| 6 | class SpanAttributeEncoder: |
| 7 | @staticmethod |
| 8 | def encode(attributes: Dict[str, Any]) -> bytes: |
| 9 | """Encode span attributes to binary format.""" |
| 10 | return pickle.dumps(attributes) |
| 11 | |
| 12 | @staticmethod |
| 13 | def decode(binary_data: bytes) -> Dict[str, Any]: |
no outgoing calls