提交 57edc233 编写于 作者: S 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).
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册