You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 41d00a1
Browse filesBrowse the repository at this point in the historyBrowse files
You can also provide `InspectorService` as an ambient Effect service. The spawn option replaces the ambient inspector for that actor.
14
+
10
15
Inspection events cover:
11
16
12
17
- actor spawn
@@ -42,22 +47,34 @@ machine.on(State.Accepted, Event.Submit, function submitOrder({ state }) {
42
47
43
48
Each inspection event includes the actor generation. Generation zero is the first run. The value increases after each supervised restart.
44
49
45
-
The console inspector logs readable machine events with Effect logging. The tracing inspector emits spans and events. The collecting inspector stores typed events for tests. `combineInspectors`isolates an inspector failure from the other inspectors.
50
+
The console inspector logs readable machine events with Effect logging. The tracing inspector emits spans and events. The collecting inspector stores typed events for tests. `combineInspectors`runs inspectors in order. It isolates each inspector failure.
46
51
47
-
Use `makeInspectorHub` when inspection consumers load after actors start. Provide the hub Inspector before actor startup. Register and unregister sinks later without restarting actors or duplicating actor state.
52
+
Use `actor.system.inspect` when an inspection consumer loads after an actor starts. The system inspector receives events from all actors in that system.
The late sink receives future inspection events. It does not receive events emitted before registration. The hub isolates each sink failure from the actor and the other sinks.
67
+
The late inspector receives future events. It does not receive prior events. A system inspector is heterogeneous. Use `makeInspector()` without machine-specific type arguments. The runtime runs the actor inspector first. It then runs system inspectors in registration order. It waits for each inspector. It isolates each failure.
68
+
69
+
Effect code can scope a late registration with `Effect.acquireRelease`.
0 commit comments