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: 45e773bf62b278b8a54c9660b12c5f92cb36406f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

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

    feature_category :tracing

    before_action :check_tracing_enabled

    def index; end

    def show
      @trace_id = params[:id]
    end

    private

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