Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder on_finish call order to correctly instrument all tornado work done during a request #499

Merged
merged 8 commits into from
Jun 7, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ def _prepare(tracer, request_hook, func, handler, args, kwargs):


def _on_finish(tracer, func, handler, args, kwargs):
response = func(*args, **kwargs)
_finish_span(tracer, handler)
return func(*args, **kwargs)
return response


def _log_exception(tracer, func, handler, args, kwargs):
Expand Down