Skip to content

Commit

Permalink
Create a new context for each Tornado request
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Sep 4, 2023
1 parent 1b76644 commit 8c328f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bugsnag/tornado/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Dict, Any # noqa
from urllib.parse import parse_qs, unquote_to_bytes
from bugsnag.breadcrumbs import BreadcrumbType
from bugsnag.context import create_new_context
from bugsnag.utils import (
is_json_content_type,
remove_query_from_url,
Expand Down Expand Up @@ -130,6 +131,7 @@ def prepare(self):
bugsnag.configure().runtime_versions['tornado'] = tornado.version
middleware.before_notify(self.add_tornado_request_to_notification)
bugsnag.configure()._breadcrumbs.create_copy_for_context()
create_new_context()

_auto_leave_breadcrumb(
'http request',
Expand Down

0 comments on commit 8c328f9

Please sign in to comment.