Skip to content

Commit 9038fe5

Browse files
committed
lint
1 parent 6918597 commit 9038fe5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

sentry_sdk/integrations/tornado.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,13 @@ def _handle_request_impl(self: "RequestHandler") -> "Generator[None, None, None]
136136
if self.request.remote_ip:
137137
if has_data_collection_enabled(client.options):
138138
if client.options["data_collection"]["user_info"]:
139-
scope.set_attribute(SPANDATA.USER_IP_ADDRESS, self.request.remote_ip)
139+
scope.set_attribute(
140+
SPANDATA.USER_IP_ADDRESS, self.request.remote_ip
141+
)
140142
elif should_send_default_pii():
141-
scope.set_attribute(SPANDATA.USER_IP_ADDRESS, self.request.remote_ip)
143+
scope.set_attribute(
144+
SPANDATA.USER_IP_ADDRESS, self.request.remote_ip
145+
)
142146

143147
span_ctx = sentry_sdk.traces.start_span(
144148
name=_DEFAULT_ROOT_SPAN_NAME,

0 commit comments

Comments
 (0)