Flow PHP

AttributeSource

Which attribute set on a signal an {@see AttributeFilter} inspects.

self::SIGNAL - the signal's own attributes (span/metric/log record). self::RESOURCE - the shared resource attributes (service.name, etc.). self::SCOPE - the instrumentation scope attributes.

Cases

RESOURCE
SCOPE
SIGNAL

Methods

select()  : array<int, Attributes>
Resolve each configured source to its attribute set, preserving order. The single place the source-to-attributes mapping lives, shared by every consumer that feeds {@see AttributeFilter::dropFunction()} (log/span/metric filters and the attribute-matching sampler).

Cases

Methods

select()

Resolve each configured source to its attribute set, preserving order. The single place the source-to-attributes mapping lives, shared by every consumer that feeds {@see AttributeFilter::dropFunction()} (log/span/metric filters and the attribute-matching sampler).

public static select(array<int, self> $sources, Attributes $signal, Attributes $resource, Attributes $scope) : array<int, Attributes>
Parameters
$sources : array<int, self>
$signal : Attributes
$resource : Attributes
$scope : Attributes
Return values
array<int, Attributes>
On this page

Search results