mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-25 22:18:23 +02:00
new tracing system
This commit is contained in:
parent
b87d940d11
commit
a6f43f3c3c
127 changed files with 7509 additions and 1454 deletions
|
@ -47,6 +47,14 @@ func GetCallbackURLForRedirectURI(r *http.Request, encodedSessionJWT, rawRedirec
|
|||
if r.FormValue(QueryIsProgrammatic) == "true" {
|
||||
callbackParams.Set(QueryIsProgrammatic, "true")
|
||||
}
|
||||
// propagate trace context
|
||||
if tracecontext := r.FormValue(QueryTraceparent); tracecontext != "" {
|
||||
callbackParams.Set(QueryTraceparent, tracecontext)
|
||||
}
|
||||
if tracestate := r.FormValue(QueryTracestate); tracestate != "" {
|
||||
callbackParams.Set(QueryTracestate, tracestate)
|
||||
}
|
||||
|
||||
// add our encoded and encrypted route-session JWT to a query param
|
||||
callbackParams.Set(QuerySessionEncrypted, encodedSessionJWT)
|
||||
callbackParams.Set(QueryRedirectURI, redirectURI.String())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue