Skip to content

Commit 30ffaad

Browse files
add functools.wraps
1 parent f54e45d commit 30ffaad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sentry_sdk/integrations/clickhouse_driver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import functools
12
from typing import TYPE_CHECKING, TypeVar
23

34
import sentry_sdk
@@ -72,6 +73,7 @@ def setup_once() -> None:
7273

7374

7475
def _wrap_start(f: "Callable[P, T]") -> "Callable[P, T]":
76+
@functools.wraps(f)
7577
def _inner(*args: "P.args", **kwargs: "P.kwargs") -> "T":
7678
client = sentry_sdk.get_client()
7779
if client.get_integration(ClickhouseDriverIntegration) is None:

0 commit comments

Comments
 (0)