WithSpan
    
            
            in package
            
        
    
    
    
FinalYes
Functions and methods with this attribute will be auto-instrumented by the OpenTelemetry extension.
Attributes
- #[Attribute]
 - \Attribute::TARGET_FUNCTION | \Attribute::TARGET_METHOD
 
Table of Contents
Properties
- $attributes : array<string|int, mixed>
 - $span_kind : int|null
 - $span_name : string|null
 
Methods
- __construct() : mixed
 
Properties
$attributes read-only
        public
            array<string|int, mixed>
    $attributes
     = []
    
    
    
    
    
$span_kind read-only
        public
            int|null
    $span_kind
     = null
    
    
    
    
    
$span_name read-only
        public
            string|null
    $span_name
     = null
    
    
    
    
    
Methods
__construct()
    public
                    __construct([string|null $span_name = null ][, int|null $span_kind = null ][, array<string|int, mixed> $attributes = [] ]) : mixed