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

tracing_controller.rb « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1218ebf3440de941140fe72fb5f5246664e4798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Projects
  class TracingController < Projects::ApplicationController
    include ::Observability::ContentSecurityPolicy

    feature_category :tracing

    before_action :check_tracing_enabled

    def index; end

    private

    def check_tracing_enabled
      render_404 unless Gitlab::Observability.tracing_enabled?(project)
    end
  end
end