asobi_extension_watch (asobi v0.72.6)
View SourceSays which extension went dark.
An extension that exhausts its own restart budget is not restarted (see
asobi_extension_sup), so the node keeps serving with one feature missing.
Without this the only trace is an OTP supervisor report, and "a feature
stopped working and nothing said so" is the failure mode the whole tree
exists to make legible.
It monitors rather than links: a monitor cannot influence what it watches.
Summary
Types
-type state() :: #{names := [asobi_extension:name()], monitors := #{reference() => atom()}}.
Functions
-spec handle_call(term(), gen_server:from(), state()) -> {reply, ok, state()}.
-spec init([asobi_extension:name()]) -> {ok, state(), {continue, monitor}}.
-spec start_link([asobi_extension:name()]) -> {ok, pid()} | {error, term()}.