Insider.Collector.SystemMonitor (Insider v0.1.0)

Copy Markdown View Source

Supervised, bounded collection of selected ERTS system anomalies.

OTP 28 and 29 use an isolated trace:system/3 session. OTP 27 requires an explicit disposable-node legacy capability and refuses any existing global system monitor. Raw monitor tuples are ordinary, forgeable mailbox messages; they are treated as hostile input and projected through a closed schema.

Summary

Functions

Returns a specification to start this module under a supervisor.

Waits for the receiver's current mailbox prefix, then drains visible evidence.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

flush(server)

@spec flush(GenServer.server()) ::
  {:ok, map()} | {:error, :receiver_busy | :unavailable}

Waits for the receiver's current mailbox prefix, then drains visible evidence.

Concurrent VM delivery after the receiver barrier is outside this guarantee.

start_link(arg1)

start_link(recorder, policy, options)

status(server)

@spec status(GenServer.server()) :: {:ok, map()} | {:error, :unavailable}

stop(server)

@spec stop(GenServer.server()) :: {:ok, map()} | {:error, :unavailable}