SpanAttribute
in package
FinalYes
For function and methods that have the {@link WithSpan} attribute, adding this attribute to an argument will add the argument as a span attribute.
Attributes
- #[Attribute]
- \Attribute::TARGET_PARAMETER | \Attribute::TARGET_PROPERTY
Table of Contents
Properties
- $name : string|null
Methods
- __construct() : mixed
Properties
$name read-only
public
string|null
$name
= null
Methods
__construct()
public
__construct([string|null $name = null ]) : mixed
Parameters
- $name : string|null = null
-
Optional name to use for the attribute. Default: argument name.