thoth-station / result-api

API service that handles data storing in project Thoth
https://thoth-station.github.io/
GNU General Public License v3.0
0 stars 5 forks source link

Capture analyzer id in logs when an exception happens #90

Open fridex opened 5 years ago

fridex commented 5 years ago

We should log information about the id of analyzes that failed to be stored to be sure with tractability of issues. We already submit errors to Sentry, but we should be able to track down to specific analyzer what went wrong. For this purpose we should implement an exception handler (similar to the one in user-api https://github.com/thoth-station/user-api/blob/6ad7acc0ae99b47708466755542d5015e54b8b77/thoth_user_api/entrypoint.py#L105-L116) that states exact time when the exception happened in the cluster as well as additional info such as analysis id that submitted results.

fridex commented 5 years ago

The analyzer id can be passed also as an extra context when the exception is logged to sentry - see https://github.com/thoth-station/common/issues/160 for more info.