Skip to main content
Containers emit events when observers are registered via observe(). This powers @brushy/di-monitor and custom telemetry.

Subscribe

Event emission is optimized away until the first observe() call. Attaching a monitor or observer enables the event path for subsequent operations.

Event types

Performance note

When no observers are attached, resolve uses a fast path with a monomorphic last-token micro-cache. After observe() is called, every resolve goes through the event bus. For production monitoring, prefer @brushy/di-monitor with filtered eventTypes instead of ad-hoc observe handlers on hot paths.

Custom observers