This is considered a critical security vulnerability. [0]
[0] https://owasp.org/www-project-top-ten/2017/A6_2017-Security_...
[0] https://owasp.org/www-project-top-ten/2017/A6_2017-Security_...
Security by obfuscation is generally not a good option if you can avoid it.
I strongly urge everyone to hide their stack traces in production. This will reduce your application's attack surface.
Of course, but obscurity increases security