Exemplar
in package
FinalYes
Table of Contents
Properties
- $attributes : AttributesInterface
- $spanId : string|null
- $timestamp : int
- $traceId : string|null
- $value : float|int
- $index : int|string
Methods
- __construct() : mixed
- groupByIndex() : array<string|int, array<int, Exemplar>>
Properties
$attributes read-only
public
AttributesInterface
$attributes
$spanId read-only
public
string|null
$spanId
$timestamp read-only
public
int
$timestamp
$traceId read-only
public
string|null
$traceId
$value read-only
public
float|int
$value
$index read-only
private
int|string
$index
Methods
__construct()
public
__construct(int|string $index, float|int $value, int $timestamp, AttributesInterface $attributes, string|null $traceId, string|null $spanId) : mixed
Parameters
- $index : int|string
- $value : float|int
- $timestamp : int
- $attributes : AttributesInterface
- $traceId : string|null
- $spanId : string|null
groupByIndex()
public
static groupByIndex(iterable<string|int, Exemplar> $exemplars) : array<string|int, array<int, Exemplar>>
Parameters
- $exemplars : iterable<string|int, Exemplar>