diff options
-rw-r--r-- | lib/gitlab/metrics/samplers/ruby_sampler.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/metrics/samplers/ruby_sampler.rb b/lib/gitlab/metrics/samplers/ruby_sampler.rb index 8cc63ee1281..3bfa3da35e0 100644 --- a/lib/gitlab/metrics/samplers/ruby_sampler.rb +++ b/lib/gitlab/metrics/samplers/ruby_sampler.rb @@ -66,10 +66,8 @@ module Gitlab private def sample_gc - gc_reports = sample_gc_reports - # Observe all GC samples - gc_reports.each do |report| + sample_gc_reports.each do |report| metrics[:gc_duration_seconds].observe(labels, report[:GC_TIME]) end |