<PackageReference Include="OpenTelemetry" Version="1.15.2" />

OpenTelemetry.Metrics.FixedSizeExemplarReservoir

public int Capacity { get; }

Gets the capacity (number of Exemplars) contained in the reservoir.

protected FixedSizeExemplarReservoir(int capacity)

Initializes a new instance of the FixedSizeExemplarReservoir class.

protected virtual void OnCollected()

Fired when Collect has finished before returning a ReadOnlyExemplarCollection.

protected void UpdateExemplar(int exemplarIndex, ref ExemplarMeasurement measurement)

Updates the Exemplar stored in the reservoir at the specified index with an ExemplarMeasurement<T>.

protected void UpdateExemplar(int exemplarIndex, ref ExemplarMeasurement measurement)

Updates the Exemplar stored in the reservoir at the specified index with an ExemplarMeasurement<T>.