log "Custom/nb_rcpt_tos" metric
This commit is contained in:
parent
20b6ce29fc
commit
ed39d47e7a
|
@ -2361,6 +2361,9 @@ class MailHandler:
|
|||
envelope.mail_from,
|
||||
envelope.rcpt_tos,
|
||||
)
|
||||
newrelic.agent.record_custom_metric(
|
||||
"Custom/nb_rcpt_tos", len(envelope.rcpt_tos)
|
||||
)
|
||||
|
||||
with create_light_app().app_context():
|
||||
ret = handle(envelope, msg)
|
||||
|
|
Loading…
Reference in New Issue