FilteredReservoir
in package
implements
ExemplarReservoirInterface
FinalYes
The exemplar spec is not yet stable, and can change at any time.
Tags
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- collect() : array<string|int, Exemplar>
- offer() : void
Properties
$filter read-only
private
ExemplarFilterInterface
$filter
$reservoir read-only
private
ExemplarReservoirInterface
$reservoir
Methods
__construct()
public
__construct(ExemplarReservoirInterface $reservoir, ExemplarFilterInterface $filter) : mixed
Parameters
- $reservoir : ExemplarReservoirInterface
- $filter : ExemplarFilterInterface
collect()
public
collect(array<string|int, mixed> $dataPointAttributes) : array<string|int, Exemplar>
Parameters
- $dataPointAttributes : array<string|int, mixed>
Return values
array<string|int, Exemplar>offer()
public
offer(mixed $index, mixed $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp) : void
Parameters
- $index : mixed
- $value : mixed
- $attributes : AttributesInterface
- $context : ContextInterface
- $timestamp : int