Remove metrics instrumentation for _get_next_execution method.
This method is called every 1ms by default so instrumentation causes a
lot of overhead and too much noise if log level is set to DEBUG.
@@ -94,7 +94,9 @@ class ActionExecutionSchedulingQueueHandler(object):
execution_queue_item_db.id
)
- @metrics.Timer(key='scheduler.get_next_execution')
+ # TODO: This causes too much noise under DEBUG level and too many metrics send to the metrics
+ # backend. We should sample it
+ #@metrics.Timer(key='scheduler.get_next_execution')
def _get_next_execution(self):
"""
Sort execution requests by FIFO and priority and get the latest, highest priority item from
