diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-10 16:16:48 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-17 17:25:48 +0100 |
commit | f43f3b89a633b5ceee4e71acba0c83ed5cb28963 (patch) | |
tree | 7152d5385d3ac57eb69cd80547cbe7e6bdac691a /lib | |
parent | 5dbcb635a17aff6543150a66b597c75b819801e2 (diff) | |
download | gitlab-ce-f43f3b89a633b5ceee4e71acba0c83ed5cb28963.tar.gz |
Added Instrumentation.configure
This makes it easier to instrument multiple modules without having to
type the full namespace over and over again.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/metrics/instrumentation.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/metrics/instrumentation.rb b/lib/gitlab/metrics/instrumentation.rb index 12d5ede4be3..8822a907967 100644 --- a/lib/gitlab/metrics/instrumentation.rb +++ b/lib/gitlab/metrics/instrumentation.rb @@ -11,6 +11,10 @@ module Gitlab module Instrumentation SERIES = 'method_calls' + def self.configure + yield self + end + # Instruments a class method. # # mod - The module to instrument as a Module/Class. |