gitlab-rails will report a NoMethodError when I use coverband coverage tool

gitlab-rails will report a NoMethodError when I use coverband coverage tool

Closed

gitlab-rails will report a NoMethodError when I use coverband coverage tool

when I used coverband([https://github.com/danmayer/coverband]) to measure the coverage of gitlab-rails,it reported an NoMethodError: NoMethodError (undefined method `instance_observe_duration’ for nil:NilClass):

lib/gitlab/instrumentation/redis_interceptor.rb:23:in ensure in call' lib/gitlab/instrumentation/redis_interceptor.rb:30:in call’ lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in call' lib/gitlab/middleware/rails_queue_duration.rb:33:in call’ lib/gitlab/metrics/rack_middleware.rb:16:in block in call' lib/gitlab/metrics/transaction.rb:56:in run’ lib/gitlab/metrics/rack_middleware.rb:16:in call' lib/gitlab/request_profiler/middleware.rb:17:in call’ lib/gitlab/jira/middleware.rb:19:in call' lib/gitlab/middleware/go.rb:20:in call’ lib/gitlab/etag_caching/middleware.rb:21:in call' lib/gitlab/middleware/multipart.rb:172:in call’ lib/gitlab/middleware/read_only/controller.rb:50:in call' lib/gitlab/middleware/read_only.rb:18:in call’ lib/gitlab/middleware/same_site_cookies.rb:27:in call' lib/gitlab/middleware/handle_malformed_strings.rb:21:in call’ lib/gitlab/middleware/basic_health_check.rb:25:in call' lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in call’ lib/gitlab/middleware/request_context.rb:21:in call' config/initializers/fix_local_cache_middleware.rb:11:in call’ lib/gitlab/middleware/rack_multipart_tempfile_factory.rb:21:in call' lib/gitlab/metrics/requests_rack_middleware.rb:76:in call’ lib/gitlab/middleware/release_env.rb:12:in `call’

in https://github.com/danmayer/coverband/issues/419,The owner of Coverband said:
https://gitlab.com/gitlab-org/gitlab/uploads/8cebcb52a8bc915f61a5ae938b385d4e/image.png

so,Could you help me how to fix this error?I am looking forward to your reply!