diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-27 08:54:43 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-27 08:54:43 +0100 |
| commit | ff2fa0b21d327c1a1d76fa4ae8be8516b6d6171b (patch) | |
| tree | c2527f944f7ff54db360453c0eee4080d8a9ec8e /code | |
| parent | a4d94eb40ab52ffbc9f1e9647d5cc29edae18905 (diff) | |
| download | greatoffice-ff2fa0b21d327c1a1d76fa4ae8be8516b6d6171b.tar.xz greatoffice-ff2fa0b21d327c1a1d76fa4ae8be8516b6d6171b.zip | |
feat: Populate/overwrite TraceId when giving whole problem as argument
Diffstat (limited to 'code')
| -rw-r--r-- | code/api/src/Endpoints/EndpointBase.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/code/api/src/Endpoints/EndpointBase.cs b/code/api/src/Endpoints/EndpointBase.cs index 8b9bbf0..105fbdf 100644 --- a/code/api/src/Endpoints/EndpointBase.cs +++ b/code/api/src/Endpoints/EndpointBase.cs @@ -27,6 +27,7 @@ public class EndpointBase : ControllerBase [NonAction] protected ActionResult KnownProblem(KnownProblemModel problem) { HttpContext.Response.Headers.Add(AppHeaders.IS_KNOWN_PROBLEM, "1"); + problem.TraceId = HttpContext.TraceIdentifier; return BadRequest(problem); } |
