Commit 57edc233 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 29ddc15f
---
title: Add metrics events for incoming emails
merge_request:
author:
......@@ -32,6 +32,10 @@ module Gitlab
raise UnknownIncomingEmail unless handler
Gitlab::Metrics.add_event(:receive_email,
project: handler.try(:project),
handler: handler.class.name)
handler.execute
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