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

Commit

Permalink
Fix persist_events to stop leaking opentracing contexts (#10193)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Jun 17, 2021
1 parent 18edc9a commit 52c60bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 52c60bd

Please sign in to comment.