OpenTelemetry PHP

WithSpanHandler
in package

Generic pre-hook and post-hook handlers for attribute-based auto instrumentation

Table of Contents

Methods

post()  : void
pre()  : void

Methods

post()

public static post(mixed $target, array<string|int, mixed> $params, mixed $result, Throwable|null $exception) : void
Parameters
$target : mixed
$params : array<string|int, mixed>
$result : mixed
$exception : Throwable|null

pre()

public static pre(mixed $target, array<string|int, mixed> $params, string|null $class, string $function, string|null $filename, int|null $lineno[, array<string|int, mixed>|null $span_args = [] ][, array<string|int, mixed>|null $attributes = [] ]) : void
Parameters
$target : mixed
$params : array<string|int, mixed>
$class : string|null
$function : string
$filename : string|null
$lineno : int|null
$span_args : array<string|int, mixed>|null = []
$attributes : array<string|int, mixed>|null = []
Tags
psalm-suppress

ArgumentTypeCoercion


        
On this page

Search results