Posted 16 December 2021, 5:15 pm EST
Hi
I’m after a solution for obtaining or generating reference numbers which users can then forward to tech support when they encounter an error on the website. This number would be referenced by the log record which would contain full error details so that they can be linked.
Currently the boilerplate MVC template error model passes either
Activity.Current?.Id
or HttpContext.TraceIdentifier
back to the view, however these are both quite long reference numbers and I was after something a bit more user-friendly, say 6-10 characters max.
I was wondering if there was a common convention for this, or if there is a feature already in place as part of .NET (or an external package)?