We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5248e commit 13fb6f2Copy full SHA for 13fb6f2
src/appengine/libs/handler.py
@@ -30,6 +30,7 @@
30
from clusterfuzz._internal.config import local_config
31
from clusterfuzz._internal.datastore import data_types
32
from clusterfuzz._internal.google_cloud_utils import pubsub
33
+from clusterfuzz._internal.metrics import monitor
34
from clusterfuzz._internal.system import environment
35
from libs import access
36
from libs import auth
@@ -96,11 +97,12 @@ def wrapper(self):
96
97
if not self.is_cron():
98
raise helpers.AccessDeniedError('You are not a cron.')
99
- result = func(self)
100
- if result is None:
101
- return 'OK'
+ with monitor.wrap_with_monitoring():
+ result = func(self)
102
+ if result is None:
103
+ return 'OK'
104
- return result
105
+ return result
106
107
return wrapper
108
0 commit comments