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
__construct()
public
__construct(SpanExporterInterface $decorated[, LoggerInterface|null $logger = null ][, SpanConverterInterface|null $converter = null ]) : mixed
Parameters
-
$decorated
: SpanExporterInterface
-
-
$logger
: LoggerInterface|null
= null
-
-
$converter
: SpanConverterInterface|null
= null
-
export()
public
export(iterable<string|int, SpanDataInterface> $batch[, CancellationInterface|null $cancellation = null ]) : FutureInterface<string|int, bool>
Parameters
-
$batch
: iterable<string|int, SpanDataInterface>
-
-
$cancellation
: CancellationInterface|null
= null
-
forceFlush()
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
-
$cancellation
: CancellationInterface|null
= null
-
getSpanConverter()
public
getSpanConverter() : SpanConverterInterface
setDecorated()
public
setDecorated(SpanExporterInterface $decorated) : void
Parameters
-
$decorated
: SpanExporterInterface
-
setDefaultLogLevel()
public
setDefaultLogLevel(string $logLevel) : void
Parameters
-
$logLevel
: string
-
shutdown()
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
-
$cancellation
: CancellationInterface|null
= null
-
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>
convertSpan()
protected
convertSpan(SpanDataInterface $span) : array<string|int, mixed>
Parameters
-
$span
: SpanDataInterface
-
-
psalm-suppress
-
Return values
array<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
-
setSpanConverter()
protected
setSpanConverter(SpanConverterInterface $converter) : void
Parameters
-
$converter
: SpanConverterInterface
-