OpenTelemetry PHP

LoggerDecorator
in package
implements SpanExporterInterface, LoggerAwareInterface uses SpanExporterDecoratorTrait, UsesSpanConverterTrait, LoggerAwareTrait

Table of Contents

Interfaces

SpanExporterInterface
LoggerAwareInterface

Properties

$decorated  : SpanExporterInterface
$converter  : SpanConverterInterface|null
$defaultLogLevel  : string

Methods

__construct()  : mixed
export()  : FutureInterface<string|int, bool>
forceFlush()  : bool
getSpanConverter()  : SpanConverterInterface
setDecorated()  : void
setDefaultLogLevel()  : void
shutdown()  : bool
afterExport()  : void
beforeExport()  : iterable<string|int, mixed>
convertSpan()  : array<string|int, mixed>
getLogger()  : LoggerInterface
log()  : void
setSpanConverter()  : void

Properties

$defaultLogLevel

private string $defaultLogLevel = \Psr\Log\LogLevel::INFO

Methods

setDefaultLogLevel()

public setDefaultLogLevel(string $logLevel) : void
Parameters
$logLevel : string

afterExport()

protected afterExport(iterable<string|int, mixed> $spans, bool $exportSuccess) : void
Parameters
$spans : iterable<string|int, mixed>
$exportSuccess : bool

beforeExport()

protected beforeExport(iterable<string|int, mixed> $spans) : iterable<string|int, mixed>
Parameters
$spans : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>

getLogger()

protected getLogger() : LoggerInterface
Return values
LoggerInterface

log()

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

        
On this page

Search results