mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +02:00
[tracing] refactor to use custom extension for trace id editing (#5420)
refactor to use custom extension for trace id editing
This commit is contained in:
parent
de68673819
commit
86bf8a1d5f
36 changed files with 1144 additions and 2672 deletions
|
@ -232,11 +232,8 @@ func (a *Authorize) requireLoginResponse(
|
|||
|
||||
headers := http.Header{}
|
||||
if id := in.GetAttributes().GetRequest().GetHttp().GetHeaders()["traceparent"]; id != "" {
|
||||
headers["X-Pomerium-Traceparent"] = []string{id}
|
||||
headers["X-Pomerium-Tracestate"] = []string{"pomerium.traceparent=" + id} // TODO: this might not be necessary anymore
|
||||
signInURLQuery = url.Values{}
|
||||
signInURLQuery.Add("pomerium_traceparent", id)
|
||||
signInURLQuery.Add("pomerium_tracestate", "pomerium.traceparent="+id)
|
||||
}
|
||||
redirectTo, err := state.authenticateFlow.AuthenticateSignInURL(
|
||||
ctx, signInURLQuery, &checkRequestURL, idp.GetId())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue