OpenTelemetry PHP

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

$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>
Return values
array<string|int, array<int, Exemplar>>

        
On this page

Search results