Skip to main content

Module v04

Module v04 

Source

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_v1 would write for payload. 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 TracerPayload as a v0.4 msgpack payload with a caller-supplied initial capacity. Use this when you can size the buffer up front (e.g. from to_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 TracerPayload as v0.4 msgpack into the provided slice. Useful for callers that own a pre-sized buffer (e.g. for FFI / zero-copy paths).