Open Donkie opened 5 years ago
Do you have any idea how this affects performance? This can already be quite a slow process and I wouldn't want to nuke a server with an error in a think hook. (Though really, implementing sampling would probably fix that regardless)
Unfortunately I haven't tested the performance of this, I can do it in a few days.
Maybe lag during spam could be combated by early on quitting for repeated errors in some clever way.
This sends all locals (including function parameters) and optionally upvalues to Sentry aswell for every stack level, which facilitates easier debugging. Both locals and upvalues can be disabled via the config options.
Upvalues are disabled by default because they can become quite many.