DeferredObservableCounter
class DeferredObservableCounter implements ObservableCounterInterface
| internal |
Keep a pre-fork observable counter and its creation callbacks replayable.
Properties
| protected ObservableCounterInterface|null | $delegate |
Methods
Create a deferred observable counter.
Bind this handle to an instrument from the given meter.
Unbind this handle from its worker instrument.
Register an observation callback that follows worker rebinding.
Determine whether this instrument belongs to the given deferred meter.
Return the current worker instrument.
Determine whether the current observable counter is enabled.
Details
at line 26
__construct(DeferredMeter $meter, string $name, string|null $unit, string|null $description, array $advisory, array $callbacks)
Create a deferred observable counter.
at line 39
void
bind(MeterInterface $meter)
Bind this handle to an instrument from the given meter.
at line 53
void
unbind()
Unbind this handle from its worker instrument.
at line 61
ObservableCallbackInterface
observe(callable $callback)
Register an observation callback that follows worker rebinding.
at line 70
bool
belongsTo(DeferredMeter $meter)
Determine whether this instrument belongs to the given deferred meter.
at line 78
ObservableCounterInterface|null
delegate()
Return the current worker instrument.
at line 86
bool
isEnabled()
Determine whether the current observable counter is enabled.