mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 02:57:41 -05:00
Trace how long it takes for the send trasaction to complete, including retrys (#5986)
This commit is contained in:
parent
bc604e7f94
commit
f7c873a643
4 changed files with 56 additions and 36 deletions
|
|
@ -28,7 +28,11 @@ from synapse.api.errors import (
|
|||
RequestSendFailed,
|
||||
SynapseError,
|
||||
)
|
||||
from synapse.logging.opentracing import inject_active_span_byte_dict, trace_servlet
|
||||
from synapse.logging.opentracing import (
|
||||
inject_active_span_byte_dict,
|
||||
trace,
|
||||
trace_servlet,
|
||||
)
|
||||
from synapse.util.caches.response_cache import ResponseCache
|
||||
from synapse.util.stringutils import random_string
|
||||
|
||||
|
|
@ -129,6 +133,7 @@ class ReplicationEndpoint(object):
|
|||
|
||||
client = hs.get_simple_http_client()
|
||||
|
||||
@trace(opname="outgoing_replication_request")
|
||||
@defer.inlineCallbacks
|
||||
def send_request(**kwargs):
|
||||
data = yield cls._serialize_payload(**kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue