Skip to content

Commit d4b3394

Browse files
committed
fix: Use SDK-internal copy of functools.wraps
1 parent 8fba151 commit d4b3394

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/django/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from sentry_sdk.hub import Hub
44
from sentry_sdk._types import MYPY
5+
from sentry_sdk._functools import wraps
56

67
if MYPY:
78
from typing import Any
@@ -44,7 +45,7 @@ def _wrap_resolver_match(hub, resolver_match):
4445

4546
old_callback = resolver_match.func
4647

47-
@functools.wraps(old_callback)
48+
@wraps(old_callback)
4849
def callback(*args, **kwargs):
4950
# type: (*Any, **Any) -> Any
5051
with hub.start_span(op="django.view", description=resolver_match.view_name):

0 commit comments

Comments
 (0)