OpenTelemetry PHP

ShutdownHandler
in package

FinalYes

Table of Contents

Properties

$handlers  : array<int, Closure>|null
$ids  : array<string|int, mixed>
$weakMap  : WeakMap<object, self>|null

Methods

__destruct()  : mixed
register()  : void
Registers a function that will be executed on shutdown.
__construct()  : mixed
registerShutdownFunction()  : void

Properties

Methods

register()

Registers a function that will be executed on shutdown.

public static register(callable $shutdownFunction) : void

If the given function is bound to an object, then the function will only be executed if the bound object is still referenced on shutdown handler invocation.

ShutdownHandler::register([$tracerProvider, 'shutdown']);
Parameters
$shutdownFunction : callable

function to register

Tags
see
register_shutdown_function

registerShutdownFunction()

private static registerShutdownFunction() : void

        
On this page

Search results