refactor: add standard traceId

This commit is contained in:
nikita 2024-12-26 16:38:53 +03:00
parent 7f87b4d856
commit 233458ed89

View File

@ -199,7 +199,7 @@ public class AuthController(IOptionsSnapshot<Admin> user, IOptionsSnapshot<Gener
Detail = "The user is not logged in to link accounts.",
Extensions = new Dictionary<string, object?>()
{
{ "traceId", HttpContext.TraceIdentifier }
{ "traceId", Activity.Current?.Id ?? HttpContext.TraceIdentifier }
}
});
@ -212,7 +212,7 @@ public class AuthController(IOptionsSnapshot<Admin> user, IOptionsSnapshot<Gener
Detail = "This OAuth provider is already associated with the account.",
Extensions = new Dictionary<string, object?>()
{
{ "traceId", HttpContext.TraceIdentifier }
{ "traceId", Activity.Current?.Id ?? HttpContext.TraceIdentifier }
}
});