OpenTelemetry PHP

SpanExporter
in package
implements SpanExporterInterface uses LogsToLoggerTrait

FinalYes

Table of Contents

Interfaces

SpanExporterInterface

Properties

$logger  : LoggerInterface
$serializer  : ProtobufSerializer
$transport  : TransportInterface

Methods

__construct()  : mixed
export()  : FutureInterface
forceFlush()  : bool
shutdown()  : bool
logDebug()  : void
logError()  : void
logger()  : LoggerInterface
logInfo()  : void
logNotice()  : void
logWarning()  : void
doLog()  : void
Logging is best effort: a failing logger must not break the code that is being observed.

Properties

$logger read-only

private LoggerInterface $logger = new ConfiguredLogger()

Methods

logDebug()

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

logError()

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

logger()

protected logger() : LoggerInterface
Attributes
#[Override]
Return values
LoggerInterface

logInfo()

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

logNotice()

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

logWarning()

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

doLog()

Logging is best effort: a failing logger must not break the code that is being observed.

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

Search results