add "Custom/number_incoming_email" in newrelic

This commit is contained in:
Son Nguyen Kim 2021-09-20 09:48:06 +02:00
parent 98b472d925
commit 7bb54e1e8e

View file

@ -1945,6 +1945,9 @@ class MailHandler:
newrelic.agent.record_custom_metric(
"Custom/email_handler_time", elapsed, newrelic_app
)
newrelic.agent.record_custom_metric(
"Custom/number_incoming_email", 1, newrelic_app
)
return ret