OpenTelemetry PHP

SimpleSpanProcessor
in package
implements SpanProcessorInterface uses LogsMessagesTrait

Table of Contents

Interfaces

SpanProcessorInterface

Properties

$closed  : bool
$exportContext  : ContextInterface
$exporter  : SpanExporterInterface
$queue  : SplQueue<string|int, ContextInterface}>
$running  : bool

Methods

__construct()  : mixed
forceFlush()  : bool
Export all ended spans to the configured Exporter that have not yet been exported.
onEnd()  : void
onStart()  : void
shutdown()  : bool
Cleanup; after shutdown, calling onStart, onEnd, or forceFlush is invalid Returns `false` is the processor is already shutdown, otherwise `true`.
logDebug()  : void
logError()  : void
logInfo()  : void
logNotice()  : void
logWarning()  : void
doLog()  : void
flush()  : bool
shouldLog()  : bool

Properties

Methods

forceFlush()

Export all ended spans to the configured Exporter that have not yet been exported.

public forceFlush([CancellationInterface|null $cancellation = null ]) : bool

Returns true if the flush was successful, otherwise false.

Parameters
$cancellation : CancellationInterface|null = null
Return values
bool

shutdown()

Cleanup; after shutdown, calling onStart, onEnd, or forceFlush is invalid Returns `false` is the processor is already shutdown, otherwise `true`.

public shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
$cancellation : CancellationInterface|null = null
Return values
bool

logDebug()

protected static logDebug(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logError()

protected static logError(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logInfo()

protected static logInfo(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logNotice()

protected static logNotice(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logWarning()

protected static logWarning(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

doLog()

private static doLog(string $level, string $message, array<string|int, mixed> $context) : void
Parameters
$level : string
$message : string
$context : array<string|int, mixed>

shouldLog()

private static shouldLog(string $level) : bool
Parameters
$level : string
Return values
bool

        
On this page

Search results