We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d0fd3 commit 4e06a50Copy full SHA for 4e06a50
synapse/logging/scopecontextmanager.py
@@ -155,7 +155,9 @@ def close(self) -> None:
155
if self._finish_on_close:
156
self.span.finish()
157
158
- self.logcontext.scope = None
+ # The tracing scope/span should stick to the logcontext if it's active
159
+ # so we only clear if we're finishing the span.
160
+ self.logcontext.scope = None
161
162
if self._enter_logcontext:
163
self.logcontext.__exit__(None, None, None)
0 commit comments