mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 15:30:21 +00:00
Measure _get_event_from_row
This commit is contained in:
parent
2426c2f21a
commit
47dd8f02a1
1 changed files with 44 additions and 42 deletions
|
@ -22,6 +22,7 @@ from synapse.events.utils import prune_event
|
|||
from synapse.util.async import ObservableDeferred
|
||||
from synapse.util.logcontext import preserve_fn, PreserveLoggingContext
|
||||
from synapse.util.logutils import log_function
|
||||
from synapse.util.metrics import Measure
|
||||
from synapse.api.constants import EventTypes
|
||||
from synapse.api.errors import SynapseError
|
||||
|
||||
|
@ -1132,6 +1133,7 @@ class EventsStore(SQLBaseStore):
|
|||
@defer.inlineCallbacks
|
||||
def _get_event_from_row(self, internal_metadata, js, redacted,
|
||||
rejected_reason=None):
|
||||
with Measure(self._clock, "_get_event_from_row"):
|
||||
d = json.loads(js)
|
||||
internal_metadata = json.loads(internal_metadata)
|
||||
|
||||
|
|
Loading…
Reference in a new issue