mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-12 20:09:26 -05:00
Log stack traces when a missing opentracing span is detected (#10983)
Make it easier to track down where opentracing spans are going missing by including stack traces in the logs.
This commit is contained in:
parent
eda8c88b84
commit
660c8c1415
1
changelog.d/10983.misc
Normal file
1
changelog.d/10983.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Log stack traces when a missing opentracing span is detected.
|
@ -339,6 +339,7 @@ def ensure_active_span(message, ret=None):
|
|||||||
"There was no active span when trying to %s."
|
"There was no active span when trying to %s."
|
||||||
" Did you forget to start one or did a context slip?",
|
" Did you forget to start one or did a context slip?",
|
||||||
message,
|
message,
|
||||||
|
stack_info=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user