aboutsummaryrefslogtreecommitdiffstats
path: root/code/api
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-27 08:54:43 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-27 08:54:43 +0100
commitff2fa0b21d327c1a1d76fa4ae8be8516b6d6171b (patch)
treec2527f944f7ff54db360453c0eee4080d8a9ec8e /code/api
parenta4d94eb40ab52ffbc9f1e9647d5cc29edae18905 (diff)
downloadgreatoffice-ff2fa0b21d327c1a1d76fa4ae8be8516b6d6171b.tar.xz
greatoffice-ff2fa0b21d327c1a1d76fa4ae8be8516b6d6171b.zip
feat: Populate/overwrite TraceId when giving whole problem as argument
Diffstat (limited to 'code/api')
-rw-r--r--code/api/src/Endpoints/EndpointBase.cs1
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);
}