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

Commit 52c60bd

Browse files
authored
Fix persist_events to stop leaking opentracing contexts (#10193)
1 parent 18edc9a commit 52c60bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/10193.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve OpenTracing for event persistence.

synapse/storage/persist_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class _EventPersistQueueItem:
111111
backfilled: bool
112112
deferred: ObservableDeferred
113113

114-
parent_opentracing_span_contexts: List = []
114+
parent_opentracing_span_contexts: List = attr.ib(factory=list)
115115
"""A list of opentracing spans waiting for this batch"""
116116

117117
opentracing_span_context: Any = None

0 commit comments

Comments
 (0)