SpanExporterDecoratorTrait
Table of Contents
Properties
-
$decorated
: SpanExporterInterface
Methods
-
export()
: FutureInterface<string|int, bool>
-
forceFlush()
: bool
-
setDecorated()
: void
-
shutdown()
: bool
-
afterExport()
: void
-
beforeExport()
: iterable<string|int, mixed>
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
-
setDecorated()
public
setDecorated(SpanExporterInterface $decorated) : void
Parameters
-
$decorated
: SpanExporterInterface
-
shutdown()
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
-
$cancellation
: CancellationInterface|null
= null
-
afterExport()
protected
abstract afterExport(iterable<string|int, mixed> $spans, bool $exportSuccess) : void
Parameters
-
$spans
: iterable<string|int, mixed>
-
-
$exportSuccess
: bool
-
beforeExport()
protected
abstract beforeExport(iterable<string|int, mixed> $spans) : iterable<string|int, mixed>
Parameters
-
$spans
: iterable<string|int, mixed>
-
Return values
iterable<string|int, mixed>