OpenTelemetryLifecycle
class OpenTelemetryLifecycle
Traits
Properties
| protected bool | $ownsCliLifecycle | ||
| protected bool | $terminatingListenerRegistered | ||
| protected int | $activeCliCommandsInCoroutine |
Methods
Create an OpenTelemetry lifecycle coordinator.
Bind the standalone CLI lifecycle.
Mark a selected CLI command as active.
Mark a selected CLI command as complete.
Register the CLI shutdown listener once after the first successful bind.
Close providers while isolating automatic telemetry failures.
Details
at line 32
__construct(OpenTelemetryManager $manager, ExportScheduler $scheduler, Repository $config, Dispatcher $events)
Create an OpenTelemetry lifecycle coordinator.
at line 43
void
startWorker(AfterWorkerStart $event)
Bind an event or task worker and start periodic export.
at line 61
void
startCli()
Bind the standalone CLI lifecycle.
at line 80
void
beginCliCommand()
Mark a selected CLI command as active.
at line 94
void
endCliCommand()
Mark a selected CLI command as complete.
at line 112
void
startProcess(BeforeProcessHandle $event)
Bind a custom server process unless its class is excluded.
at line 136
void
finishProcess(AfterProcessHandle $event)
Close a custom server-process lifecycle.
at line 148
void
terminate(Terminating $event)
Close the standalone CLI lifecycle.
at line 162
protected void
registerTerminatingListener()
Register the CLI shutdown listener once after the first successful bind.
at line 177
protected void
close()
Close providers while isolating automatic telemetry failures.