AttributeMatch
FinalYes
Single comparison source for interpreted and compiled paths; MISSING never matches.
Constants
- MISSING : mixed = "\x00__flow_telemetry_missing__\x00"
- Sentinel for an absent path segment; null values are never stored on Attributes.
Methods
- contains() : bool
- endsWith() : bool
- equal() : bool
- greaterThan() : bool
- greaterThanEqual() : bool
- lessThan() : bool
- lessThanEqual() : bool
- notEqual() : bool
- regexp() : bool
- resolve() : mixed
- Resolve a nested attribute path, descending into array values.
- startsWith() : bool
- stringForm() : string|null
- String form of an AnyValue for the substring/regexp modes.
Constants
MISSING
Sentinel for an absent path segment; null values are never stored on Attributes.
public
mixed
MISSING
= "\x00__flow_telemetry_missing__\x00"
Methods
contains()
public
static contains(string|null $value, string $needle, bool $caseSensitive) : bool
Parameters
- $value : string|null
- $needle : string
- $caseSensitive : bool
Return values
boolendsWith()
public
static endsWith(string|null $value, string $needle, bool $caseSensitive) : bool
Parameters
- $value : string|null
- $needle : string
- $caseSensitive : bool
Return values
boolequal()
public
static equal(mixed $value, bool|float|int|string|DateTimeInterface $expected) : bool
Parameters
- $value : mixed
- $expected : bool|float|int|string|DateTimeInterface
Return values
boolgreaterThan()
public
static greaterThan(mixed $value, bool|float|int|string|DateTimeInterface $expected) : bool
Parameters
- $value : mixed
- $expected : bool|float|int|string|DateTimeInterface
Return values
boolgreaterThanEqual()
public
static greaterThanEqual(mixed $value, bool|float|int|string|DateTimeInterface $expected) : bool
Parameters
- $value : mixed
- $expected : bool|float|int|string|DateTimeInterface
Return values
boollessThan()
public
static lessThan(mixed $value, bool|float|int|string|DateTimeInterface $expected) : bool
Parameters
- $value : mixed
- $expected : bool|float|int|string|DateTimeInterface
Return values
boollessThanEqual()
public
static lessThanEqual(mixed $value, bool|float|int|string|DateTimeInterface $expected) : bool
Parameters
- $value : mixed
- $expected : bool|float|int|string|DateTimeInterface
Return values
boolnotEqual()
public
static notEqual(mixed $value, bool|float|int|string|DateTimeInterface $expected) : bool
Parameters
- $value : mixed
- $expected : bool|float|int|string|DateTimeInterface
Return values
boolregexp()
public
static regexp(string|null $value, string $pattern) : bool
Parameters
- $value : string|null
- $pattern : string
Return values
boolresolve()
Resolve a nested attribute path, descending into array values.
public
static resolve(Attributes $attributes, array<int, string> $segments) : mixed
Parameters
- $attributes : Attributes
- $segments : array<int, string>
Return values
mixed —the OpenTelemetry AnyValue at the path, or self::MISSING when any segment is absent
startsWith()
public
static startsWith(string|null $value, string $needle, bool $caseSensitive) : bool
Parameters
- $value : string|null
- $needle : string
- $caseSensitive : bool
Return values
boolstringForm()
String form of an AnyValue for the substring/regexp modes.
public
static stringForm(mixed $value) : string|null
Mirrors the scalar handling of Attributes::normalize(): DateTime is formatted as ISO 8601 and booleans as "true"/"false". Arrays, throwables and the self::MISSING sentinel have no string form and return null, which the substring/regexp modes treat as "no match".
Parameters
- $value : mixed