refactor: add standard traceId
This commit is contained in:
parent
7f87b4d856
commit
233458ed89
@ -199,7 +199,7 @@ public class AuthController(IOptionsSnapshot<Admin> user, IOptionsSnapshot<Gener
|
|||||||
Detail = "The user is not logged in to link accounts.",
|
Detail = "The user is not logged in to link accounts.",
|
||||||
Extensions = new Dictionary<string, object?>()
|
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.",
|
Detail = "This OAuth provider is already associated with the account.",
|
||||||
Extensions = new Dictionary<string, object?>()
|
Extensions = new Dictionary<string, object?>()
|
||||||
{
|
{
|
||||||
{ "traceId", HttpContext.TraceIdentifier }
|
{ "traceId", Activity.Current?.Id ?? HttpContext.TraceIdentifier }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user