Emit supportability metric every hour instead of once a day.

This commit is contained in:
Josh Bonczkowski 2025-11-21 15:12:35 -05:00
parent 68be09adab
commit 4f2c4832dd

View file

@ -152,8 +152,8 @@ class NewRelicLogger(CustomLogger):
current_time = time.time()
time_since_last_emission = current_time - _last_metric_emission_time
# 23 hours in seconds = 82800
if time_since_last_emission >= 82800:
# 1 hour in seconds = 3600
if time_since_last_emission >= 3600:
# Acquire lock to ensure only one thread emits
with _metric_lock:
# Double-check inside lock in case another thread just emitted