OpenTelemetry PHP

functions.php

Table of Contents

Functions

trace()  : R
Executes the given closure within the provided span.

Functions

trace()

Executes the given closure within the provided span.

trace(SpanInterface $span, Closure $closure[, iterable<int|string, mixed> $args = [] ]) : R

The span will be ended.

Parameters
$span : SpanInterface

span to enclose the closure with

$closure : Closure
$args : iterable<int|string, mixed> = []

arguments to provide to the closure

Tags
template

R

phpstan-ignore-next-line
Return values
R

result of the closure invocation


        
On this page

Search results