Skip to content

Commit 96286e3

Browse files
committed
fix
1 parent 9fc74a4 commit 96286e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sentry_sdk/integrations/sanic.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
from sentry_sdk.utils import (
2222
CONTEXTVARS_ERROR_MESSAGE,
2323
HAS_REAL_CONTEXTVARS,
24+
_is_localhost,
2425
capture_internal_exceptions,
2526
ensure_integration_enabled,
2627
event_from_exception,
2728
has_data_collection_enabled,
28-
is_localhost,
2929
parse_version,
3030
reraise,
3131
)
@@ -185,7 +185,7 @@ async def _context_enter(request: "Request") -> None:
185185

186186
scope.set_attribute(
187187
SPANDATA.SENTRY_IS_LOCALHOST,
188-
is_localhost(
188+
_is_localhost(
189189
client_ip=request.remote_addr or None,
190190
url_host=urlsplit(request.url).hostname,
191191
host_header=request.headers.get("host"),

0 commit comments

Comments
 (0)