mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-01 11:34:14 -04:00
Set opentracing priority before setting other tags (#10092)
... because tags on spans which aren't being sampled get thrown away.
This commit is contained in:
parent
3f96dbbda7
commit
ed53bf314f
5 changed files with 32 additions and 11 deletions
|
@ -37,6 +37,7 @@ from synapse.http.servlet import (
|
|||
)
|
||||
from synapse.logging.context import run_in_background
|
||||
from synapse.logging.opentracing import (
|
||||
SynapseTags,
|
||||
start_active_span,
|
||||
start_active_span_from_request,
|
||||
tags,
|
||||
|
@ -314,7 +315,7 @@ class BaseFederationServlet:
|
|||
raise
|
||||
|
||||
request_tags = {
|
||||
"request_id": request.get_request_id(),
|
||||
SynapseTags.REQUEST_ID: request.get_request_id(),
|
||||
tags.SPAN_KIND: tags.SPAN_KIND_RPC_SERVER,
|
||||
tags.HTTP_METHOD: request.get_method(),
|
||||
tags.HTTP_URL: request.get_redacted_uri(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue