Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Nicer name
Browse files Browse the repository at this point in the history
  • Loading branch information
JorikSchellekens committed Aug 22, 2019
1 parent 0d68ab7 commit f19593a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/federation/transport/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ async def new_func(request, *args, **kwargs):
logger.warn("authenticate_request failed: %s", e)
raise

_tags = {
request_tags = {
"request_id": request.get_request_id(),
tags.SPAN_KIND: tags.SPAN_KIND_RPC_SERVER,
tags.HTTP_METHOD: request.get_method(),
Expand All @@ -307,10 +307,10 @@ async def new_func(request, *args, **kwargs):
# and whitelisted
if origin and whitelisted_homeserver(origin):
scope = start_active_span_from_request(
request, "incoming-federation-request", tags=_tags
request, "incoming-federation-request", tags=request_tags
)
else:
scope = start_active_span("incoming-federation-request", tags=_tags)
scope = start_active_span("incoming-federation-request", tags=request_tags)

with scope:
if origin:
Expand Down

0 comments on commit f19593a

Please sign in to comment.