# This Rack middleware is intended to measure the latency between# gitlab-workhorse forwarding a request to the Rails application and the# time this middleware is reached.
# frozen_string_literal: true# For specs which don't load Rails, provide a path to Rails rootmoduleFastRailsRootRAILS_ROOT=File.absolute_path("#{__dir__}/../../..")
# This file requires config/initializers/1_settings.rbifRails.env.development?Rails.application.config.hosts+=[Gitlab.config.gitlab.host,'unix','host.docker.internal']
)// SkipRailsAuthorizer implements a fake PreAuthorizer that do not calls rails API and// authorize each call as a local only upload to TempPathtypeSkipRailsAuthorizerstruct{
moduleMetricsmoduleSubscribers# Class for tracking the total time spent in Rails cache calls# http://guides.rubyonrails.org/active_support_instrumentation.htmlclassRailsCache<ActiveSupport::Subscriber