OpenTelemetry PHP

ViewTemplate
in package

FinalYes

Table of Contents

Properties

$aggregation  : AggregationInterface|null
$aggregationResolver  : DefaultAggregationProviderInterface|null
$attributeKeys  : array<int, string>
$description  : string|null
$excludedAttributeKeys  : array<int, string>|null
$includedAttributeKeys  : array<int, string>|null
$name  : string|null

Methods

create()  : self
project()  : ViewProjection
withAggregation()  : self
withAggregationResolver()  : self
Resolves the aggregation per instrument, from its type and advisory parameters. A null result means the reader's default aggregation.
withAttributeKeyFilter()  : self
Keeps attributes whose key matches an included pattern (any key if `$included` is null) and no excluded pattern. `?` matches one character and `*` any sequence.
withAttributeKeys()  : self
withDescription()  : self
withName()  : self
__construct()  : mixed

Properties

$attributeKeys

private array<int, string> $attributeKeys = null

$excludedAttributeKeys

private array<int, string>|null $excludedAttributeKeys = null

$includedAttributeKeys

private array<int, string>|null $includedAttributeKeys = null

Methods

create()

public static create() : self
Return values
self

withAttributeKeyFilter()

Keeps attributes whose key matches an included pattern (any key if `$included` is null) and no excluded pattern. `?` matches one character and `*` any sequence.

public withAttributeKeyFilter(array<int, string>|null $included, array<int, string>|null $excluded) : self
Parameters
$included : array<int, string>|null
$excluded : array<int, string>|null
Return values
self

withAttributeKeys()

public withAttributeKeys(array<int, string> $attributeKeys) : self
Parameters
$attributeKeys : array<int, string>
Return values
self

withDescription()

public withDescription(string $description) : self
Parameters
$description : string
Return values
self

withName()

public withName(string $name) : self
Parameters
$name : string
Return values
self
On this page

Search results