<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.21.0" />

OpenTelemetry.PersistentStorage.FileSystem.BoundedMemoryStream

A MemoryStream that refuses to grow beyond a fixed size, so that the amount of memory used for data that is produced from an untrusted source (such as a file that can be replaced by another user) is bounded.
namespace OpenTelemetry.PersistentStorage.FileSystem { internal sealed class BoundedMemoryStream : MemoryStream { public BoundedMemoryStream(int maxLength); } }