Is your feature request related to a problem? Please describe.
Currently we get an identifier, click through multiple logs, and hope that the log has made it to the UI/place we can see the logs. On our shared DEV environment there can be large delays and many logs which require searching.
This makes logging a pain-point for down stream developers that are not running on localhost/on-prem with more direct log access.
Describe the solution you'd like
When a user is authenticated, has the CWMS Admins role, and the environment is "development" then return the traceback in the error JSON response.
Default to identifier ONLY response if no env set.
BONUS: Also return SQL error # if applicable, link to the issue in grafana/cloudwatch, and the traceback.
Describe alternatives you've considered
Only require auth, no role, and only on dev environment.
Will this slow requests down? Possibly only the error response to do a sec table lookup of the role/auth state. Consider a bootup check for the env and remove this fetch/feature altogether if not development.
Is your feature request related to a problem? Please describe.
Currently we get an identifier, click through multiple logs, and hope that the log has made it to the UI/place we can see the logs. On our shared DEV environment there can be large delays and many logs which require searching.
This makes logging a pain-point for down stream developers that are not running on localhost/on-prem with more direct log access.
Describe the solution you'd like
When a user is authenticated, has the CWMS Admins role, and the environment is "development" then return the traceback in the error JSON response.
Default to identifier ONLY response if no env set.
BONUS: Also return SQL error # if applicable, link to the issue in grafana/cloudwatch, and the traceback.
Describe alternatives you've considered
Only require auth, no role, and only on dev environment.
Will this slow requests down? Possibly only the error response to do a sec table lookup of the role/auth state. Consider a bootup check for the env and remove this fetch/feature altogether if not development.