From 233458ed89d99c817fe426bf9a7905815433c1f5 Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 26 Dec 2024 16:38:53 +0300 Subject: [PATCH] refactor: add standard traceId --- Endpoint/Controllers/V1/AuthController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Endpoint/Controllers/V1/AuthController.cs b/Endpoint/Controllers/V1/AuthController.cs index 2b01b54..b7c49f3 100644 --- a/Endpoint/Controllers/V1/AuthController.cs +++ b/Endpoint/Controllers/V1/AuthController.cs @@ -199,7 +199,7 @@ public class AuthController(IOptionsSnapshot user, IOptionsSnapshot() { - { "traceId", HttpContext.TraceIdentifier } + { "traceId", Activity.Current?.Id ?? HttpContext.TraceIdentifier } } }); @@ -212,7 +212,7 @@ public class AuthController(IOptionsSnapshot user, IOptionsSnapshot() { - { "traceId", HttpContext.TraceIdentifier } + { "traceId", Activity.Current?.Id ?? HttpContext.TraceIdentifier } } });