Functionsยง
- to_
encoded_ byte_ len_ from_ v04 - Computes the number of bytes required to encode the given traces.
- to_
encoded_ byte_ len_ from_ v1 - Returns the exact number of bytes
to_vec_from_v1would write forpayload. Walks the payload through a counting writer without allocating an output buffer. - to_
vec_ from_ v04 - Serializes traces into a vector of bytes with a default capacity of 0.
- to_
vec_ from_ v1 - Serializes a
TracerPayload(V1 data model) as a v0.4 msgpack payload. - to_
vec_ with_ capacity_ from_ v04 - Serializes traces into a vector of bytes with specified capacity.
- to_
vec_ with_ capacity_ from_ v1 - Serializes a
TracerPayloadas a v0.4 msgpack payload with a caller-supplied initial capacity. Use this when you can size the buffer up front (e.g. fromto_encoded_byte_len_from_v1) to avoid reallocations. - write_
to_ slice_ from_ v04 - Encodes a collection of traces into a slice of bytes.
- write_
to_ slice_ from_ v1 - Encodes a
TracerPayloadas v0.4 msgpack into the provided slice. Useful for callers that own a pre-sized buffer (e.g. for FFI / zero-copy paths).