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
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
SIGNAL
RESOURCE
SCOPE
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