mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 13:10:20 +00:00
Header name has more context
This commit is contained in:
parent
b52f921902
commit
8aa4be5225
1 changed files with 3 additions and 3 deletions
|
@ -180,11 +180,11 @@ class Auth:
|
|||
# in that layer to a Synapse trace. ex. when Cloudflare times
|
||||
# out it gives a `cf-ray` header which we can also tag here to
|
||||
# find the trace.
|
||||
for header_key in self.hs.config.tracing.request_headers_to_tag:
|
||||
headers = request.requestHeaders.getRawHeaders(header_key)
|
||||
for header_name in self.hs.config.tracing.request_headers_to_tag:
|
||||
headers = request.requestHeaders.getRawHeaders(header_name)
|
||||
if headers is not None:
|
||||
parent_span.set_tag(
|
||||
SynapseTags.REQUEST_HEADER_PREFIX + header_key, headers[0]
|
||||
SynapseTags.REQUEST_HEADER_PREFIX + header_name, headers[0]
|
||||
)
|
||||
|
||||
return requester
|
||||
|
|
Loading…
Reference in a new issue