Nexus API Reference

ActorForwardingLogRecordExporter
in package
implements LogRecordExporterInterface uses ForwardsBatchesToActor

FinalYes
Tags
psalm-api

Forwards log batches to the OtlpExportActor once attached, buffering ahead of attachment and falling back to synchronous direct delegation if the actor dies.

see
ForwardsBatchesToActor

for the Buffering -> Live -> Direct state machine.

Table of Contents

Interfaces

LogRecordExporterInterface

Methods

__construct()  : mixed
attach()  : void
export()  : FutureInterface
forceFlush()  : bool
shutdown()  : bool

Methods

export()

public export(iterable<string|int, mixed> $batch[, CancellationInterface|null $cancellation = null ]) : FutureInterface
Parameters
$batch : iterable<string|int, mixed>
$cancellation : CancellationInterface|null = null
Attributes
#[Override]
Return values
FutureInterface

forceFlush()

public forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
$cancellation : CancellationInterface|null = null
Attributes
#[Override]
Return values
bool

shutdown()

public shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
$cancellation : CancellationInterface|null = null
Attributes
#[Override]
Return values
bool
On this page

Search results