Welcome to mirror list, hosted at ThFree Co, Russian Federation.

redis_adapter_when_peek_enabled.rb « performance_bar « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 805283b0f93b5d4c779f152725fa423edc71fa7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

# Adapted from https://github.com/peek/peek/blob/master/lib/peek/adapters/redis.rb
module Gitlab
  module PerformanceBar
    module RedisAdapterWhenPeekEnabled
      def save(request_id)
        super if ::Gitlab::PerformanceBar.enabled_for_request?
      end
    end
  end
end