SpanExporter
in package
implements
SpanExporterInterface
uses
LogsMessagesTrait
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $serializer : ProtobufSerializer
- $transport : TransportInterface
Methods
- __construct() : mixed
- export() : FutureInterface
- forceFlush() : bool
- shutdown() : bool
- logDebug() : void
- logError() : void
- logInfo() : void
- logNotice() : void
- logWarning() : void
- doLog() : void
- shouldLog() : bool
Properties
$serializer
private
ProtobufSerializer
$serializer
$transport
private
TransportInterface
$transport
Methods
__construct()
public
__construct(TransportInterface $transport) : mixed
Parameters
- $transport : TransportInterface
Tags
export()
public
export(iterable<string|int, mixed> $batch[, CancellationInterface|null $cancellation = null ]) : FutureInterface
Parameters
- $batch : iterable<string|int, mixed>
-
Batch of spans to export
- $cancellation : CancellationInterface|null = null
Return values
FutureInterfaceforceFlush()
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Return values
boolshutdown()
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Return values
boollogDebug()
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