InMemoryExporter
in package
implements
SpanExporterInterface
uses
SpanExporterTrait
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- export() : FutureInterface<string|int, bool>
- forceFlush() : bool
- getSpans() : array<string|int, mixed>
- getStorage() : ArrayObject
- shutdown() : bool
- doExport() : bool
Properties
$running
private
bool
$running
= true
$storage read-only
private
ArrayObject
$storage
= new ArrayObject()
Methods
__construct()
public
__construct([ArrayObject $storage = new ArrayObject() ]) : mixed
Parameters
- $storage : ArrayObject = new ArrayObject()
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
Return values
FutureInterface<string|int, bool>forceFlush()
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Tags
Return values
boolgetSpans()
public
getSpans() : array<string|int, mixed>
Return values
array<string|int, mixed>getStorage()
public
getStorage() : ArrayObject
Return values
ArrayObjectshutdown()
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Tags
Return values
booldoExport()
protected
doExport(iterable<string|int, mixed> $spans) : bool
Parameters
- $spans : iterable<string|int, mixed>