Commit b74b8ccf authored by Sean McGivern's avatar Sean McGivern

Add metrics events for incoming emails

This lets us track how many incoming emails a GitLab instance is processing, by
email type (handler) and by project (where applicable).
parent ba01638b
---
title: Add metrics events for incoming emails
merge_request:
author:
...@@ -32,6 +32,10 @@ module Gitlab ...@@ -32,6 +32,10 @@ module Gitlab
raise UnknownIncomingEmail unless handler raise UnknownIncomingEmail unless handler
Gitlab::Metrics.add_event(:receive_email,
project: handler.try(:project),
handler: handler.class.name)
handler.execute handler.execute
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment