DeferredObservableGauge
class DeferredObservableGauge implements ObservableGaugeInterface
| internal |
Keep a pre-fork observable gauge and its creation callbacks replayable.
Properties
| protected ObservableGaugeInterface|null | $delegate |
Methods
Create a deferred observable gauge.
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 gauge 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 gauge.
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
ObservableGaugeInterface|null
delegate()
Return the current worker instrument.
at line 86
bool
isEnabled()
Determine whether the current observable gauge is enabled.