gitlab-org--gitlab-foss/spec/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_spec.rb
instrumentation_spec.rb Correct arity for instrumented methods w/o args 2016-01-25 21:28:59 +01:00
metric_spec.rb Removed tracking of hostnames for metrics 2015-12-31 17:55:10 +01:00
rack_middleware_spec.rb Tag all transaction metrics with an "action" tag 2016-01-11 16:51:01 +01:00
sampler_spec.rb Randomize metrics sample intervals 2016-01-13 12:57:46 +01:00
sidekiq_middleware_spec.rb Tag all transaction metrics with an "action" tag 2016-01-11 16:51:01 +01:00
system_spec.rb
transaction_spec.rb Track memory allocated during a transaction 2016-01-12 14:59:30 +01:00