Debug Interceptor
Installs debug interceptors on an StateActor that log every action dispatch and state update, building a traceable timeline of what happened and why.
Usage:
val actor = Actor(initialState, scope)
DebugInterceptor.install(actor, name = "Identity")Content copied to clipboard
Output example:
[Identity] action → Identify(userId=user_123)
[Identity] update → Identify | 2ms
[Identity] update → AttributesMerged | 0ms
[Identity] action → ResolveSeed(userId=user_123)
[Identity] update → SeedResolved | 1msContent copied to clipboard