class ExportScheduler

Traits

LogsMessagesTrait

Constants

protected CADENCES

Properties

protected int|null $timerId
protected int $generation
protected array<string, int> $intervals
protected array<string, float> $nextDueAt

Methods

__construct(OpenTelemetryManager $manager, Timer $timer)

Create an export scheduler.

void
start()

Start the single export timer for every active signal.

void
stop()

Stop the export timer without closing providers.

bool
shutdown()

Stop the export timer and close the provider graph.

bool
isRunning()

Determine whether the export timer is active.

string|null
handleTick(bool $isClosing)

Process one timer wake-up.

float
now()

Return monotonic milliseconds.

void
reset()

Reset scheduler-owned state.

Details

at line 37
__construct(OpenTelemetryManager $manager, Timer $timer)

Create an export scheduler.

Parameters

OpenTelemetryManager $manager
Timer $timer

at line 46
void start()

Start the single export timer for every active signal.

Return Value

void

at line 85
void stop()

Stop the export timer without closing providers.

Return Value

void

at line 97
bool shutdown()

Stop the export timer and close the provider graph.

Return Value

bool

at line 107
bool isRunning()

Determine whether the export timer is active.

Return Value

bool

at line 115
protected string|null handleTick(bool $isClosing)

Process one timer wake-up.

Parameters

bool $isClosing

Return Value

string|null

at line 177
protected float now()

Return monotonic milliseconds.

Return Value

float

at line 185
protected void reset()

Reset scheduler-owned state.

Return Value

void