feng-tao commented on a change in pull request #5414: [AIRFLOW-4790] Change dag
processing stats to timers
URL: https://github.com/apache/airflow/pull/5414#discussion_r293484720
##########
File path: airflow/utils/dag_processing.py
##########
@@ -984,7 +984,7 @@ def _log_file_processing_stats(self, known_file_paths):
file_name = os.path.basename(file_path)
file_name = os.path.splitext(file_name)[0].replace(os.sep, '.')
if last_runtime:
- Stats.gauge(
+ Stats.timing(
Review comment:
actually, the stat calculates the time for the dag processing time in the
latest/last iteration. If the data changes, the stat will change. So I think
gauge works in this case. Could you share why you think gauge doesn't work?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services