OpenTelemetry.Batch<T>
Stores a batch of completed T objects to be exported.
namespace OpenTelemetry
{
public readonly struct Batch<T> : IDisposable where T : class
{
[NullableContext(0)]
private delegate bool BatchEnumeratorMoveNextFunc (ref Enumerator enumerator);
public struct Enumerator : IEnumerator<T>, IEnumerator, IDisposable
{
public T Current { get; }
public void Dispose();
public bool MoveNext();
public void Reset();
}
public long Count { get; }
public Batch(T[] items, int count);
public Batch(T item);
public void Dispose();
public Enumerator GetEnumerator();
}
}