mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-01 07:50:26 +02:00
wip: new tracing system
This commit is contained in:
parent
eb57fa7a8b
commit
e221c8af84
83 changed files with 1414 additions and 1285 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