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.
pull/10993/head
Sean Quah 2021-10-05 12:23:25 +01:00 committed by GitHub
parent eda8c88b84
commit 660c8c1415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/10983.misc Normal file
View File

@ -0,0 +1 @@
Log stack traces when a missing opentracing span is detected.

View File

@ -339,6 +339,7 @@ def ensure_active_span(message, ret=None):
"There was no active span when trying to %s."
" Did you forget to start one or did a context slip?",
message,
stack_info=True,
)
return ret