Lexicality / gmod-sentry

Find out how terrible your workshop addons are in one easy place
https://lexicality.github.io/gmod-sentry/
Apache License 2.0
38 stars 3 forks source link

Added support for stacktrace vars #4

Open Donkie opened 5 years ago

Donkie commented 5 years ago

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.

Lexicality commented 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)

Donkie commented 5 years ago

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.