-
Notifications
You must be signed in to change notification settings - Fork 71
Description
It would be useful to debug poorly configured handlers or having the list of all events emitted in an application.
I initially thought about always persisting unhandled events to an ETS table, but I realize that the execute function could be called many times per second so we need to keep the overhead there to a minimum.
So I was thinking of doing it conditionally if the telemetry application is run in debug mode.
For now we could keep things simple and only persist unhandled event names.
Later we could expand the debug mode to do things that are no-nos when running in production.
The downside of this approach is that right now telemetry is so simple that it doesn't need configuration (and that is a good thing) and a debug mode would make it slightly more complex. It also means a possible foot gun for users that could unwittingly set debug mode on production.