gitlab-org--gitlab-foss/lib/gitlab/metrics
Yorick Peterse b74308c0a7 Correct arity for instrumented methods w/o args
This ensures that an instrumented method that doesn't take arguments
reports an arity of 0, instead of -1.

If Ruby had a proper method for finding out the required arguments of a
method (e.g. Method#required_arguments) this would not have been an
issue. Sadly the only two methods we have are Method#parameters and
Method#arity, and both are equally painful to use.

Fixes gitlab-org/gitlab-ce#12450
2016-01-25 21:28:59 +01:00
..
subscribers Stop tracking call stacks for instrumented views 2016-01-12 15:41:22 +01:00
delta.rb Storing of application metrics in InfluxDB 2015-12-17 17:25:48 +01:00
instrumentation.rb Correct arity for instrumented methods w/o args 2016-01-25 21:28:59 +01:00
metric.rb Removed tracking of hostnames for metrics 2015-12-31 17:55:10 +01:00
rack_middleware.rb Tag all transaction metrics with an "action" tag 2016-01-11 16:51:01 +01:00
sampler.rb Randomize metrics sample intervals 2016-01-13 12:57:46 +01:00
sidekiq_middleware.rb Tag all transaction metrics with an "action" tag 2016-01-11 16:51:01 +01:00
system.rb Storing of application metrics in InfluxDB 2015-12-17 17:25:48 +01:00
transaction.rb Track memory allocated during a transaction 2016-01-12 14:59:30 +01:00