Open batazor opened 9 months ago
As an alternative, we can add this method to the template by analogy with the `.cookie' method
func (r FrontendApiToSessionRequest) SetHeader(key, value string) FrontendApiToSessionRequest {
r.SetHeader(key, value)
return r
}
Preflight checklist
Ory Network Project
No response
Describe your problem
In order to link my
trace-id
to events in ory/kratos I need to add W3C headers.Currently there is no way to add headers to requests
Describe your ideal solution
Add method
.SetHeaders(key, value)
or.SetHeaders(map[string]string)
Workarounds or alternatives
As an option is the ability to pass the query context
.Execute(ctx context.Context)
and check for the presence oftrace-span-id
Version
github.com/ory/client-go v1.2.11
Additional Context
No response