Attach unique identifier for low-level error logs
Open
- Dominant language
- Python
- Stars
- 670
- Forks
- 183
- Avg merge
- 17h 7m
- Merged PRs (30d)
- 358
Description
As we target multi-tenancy with appropriately abstracted hardware resources, sometimes exposing too much details about low-level exceptions may impact the security.
Let's create and attach unique identifiers for all exceptions displayed to users so that admins and our support team can search them easily. It would be just enough to use [UUID with efficient 22-byte encoding](https://github.com/lablup/backend.ai-internal/issues/10#issuecomment-1161460910) with a prefix like "bai-err-". Let's also attach the relevant request information (the query params and headers) to these exception logs for easier inspection.
JIRA Issue: BA-260
Contributor guide
Assessment
This issue has not been assessed yet.