OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.Serializer.SerializationBuffer
Manages the buffer used to serialize a single OTLP export request. The buffer
is sized from the previous export's serialized length (to avoid resizing without
preserving excess capacity) and is sourced via ProtobufSerializer
from an array pool, the shared pool unless one is supplied.
Manages the buffer used to serialize a single OTLP export request. The buffer
is sized from the previous export's serialized length (to avoid resizing without
preserving excess capacity) and is sourced via ProtobufSerializer
from an array pool, the shared pool unless one is supplied.
Returns a buffer after serialization failed and resets the next rental to
the initial size.
Releases any oversized buffer retained for reuse. Called when the exporter shuts down.
Obtains a buffer for the next export, sized from the previous serialized
payload. The buffer contents are not cleared.
Hands a buffer (possibly grown during serialization) back after successful
serialization.