Skip to content

Commit 7e28cf8

Browse files
committed
added more params to decorator got_histogram in proxy class
1 parent d61e3ad commit 7e28cf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/monitoring/monitoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ class Proxy:
285285
def __init__(self, default_cls):
286286
self.instance = default_cls()
287287

288-
def got_histogram(self, param):
288+
def got_histogram(self, *args_, **kwargs_):
289289
def decor_(func):
290290
def wrap(*args, **kwargs):
291-
wrapped_func = self.instance.got_histogram(param)(func)
291+
wrapped_func = self.instance.got_histogram(*args_, **kwargs_)(func)
292292
value = wrapped_func(*args, **kwargs)
293293
return value
294294
return wrap

0 commit comments

Comments
 (0)