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

OpenTelemetry.PersistentStorage.Abstractions.PersistentBlobProvider

abstract class PersistentBlobProvider
Represents persistent blob provider.

Reads a sequence of blobs from storage.

protected abstract IEnumerable<PersistentBlob> OnGetBlobs()

protected abstract bool OnTryCreateBlob(byte[] buffer, int leasePeriodMilliseconds, out PersistentBlob blob)

protected abstract bool OnTryCreateBlob(byte[] buffer, out PersistentBlob blob)

protected virtual bool OnTryCreateBlob(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds, out PersistentBlob blob)

protected virtual bool OnTryCreateBlob(ReadOnlySpan<byte> buffer, out PersistentBlob blob)

protected abstract bool OnTryGetBlob(out PersistentBlob blob)

public bool TryCreateBlob(byte[] buffer, int leasePeriodMilliseconds, out PersistentBlob blob)

Attempts to create a new blob with the provided data and lease it.

public bool TryCreateBlob(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds, out PersistentBlob blob)

Attempts to create a new blob with the provided data and lease it.

public bool TryCreateBlob(byte[] buffer, out PersistentBlob blob)

Attempts to create a new blob with the provided data.

public bool TryCreateBlob(ReadOnlySpan<byte> buffer, out PersistentBlob blob)

Attempts to create a new blob with the provided data.

public bool TryGetBlob(out PersistentBlob blob)

Attempts to get a single blob from storage.