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

Fix persist_events to stop leaking opentracing contexts #10193

Merged
merged 1 commit into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/10193.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve OpenTracing for event persistence.
2 changes: 1 addition & 1 deletion synapse/storage/persist_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class _EventPersistQueueItem:
backfilled: bool
deferred: ObservableDeferred

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

opentracing_span_context: Any = None
Expand Down