summaryrefslogtreecommitdiff
path: root/app/views/projects/tracings/show.html.haml
blob: a7a02ab917e156c9d836f0d50f986ecd3568e06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- @content_class = "limit-container-width" unless fluid_layout
- page_title _("Tracing")

.gl-alert.gl-alert-danger.gl-mb-5
  - removal_epic_link_url = 'https://gitlab.com/groups/gitlab-org/-/epics/7188'
  - removal_epic_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer" class="gl-link">'.html_safe % { url: removal_epic_link_url }
  - opstrace_link_url = 'https://gitlab.com/groups/gitlab-org/-/epics/6976'
  - opstrace_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer" class="gl-link">'.html_safe % { url: opstrace_link_url }
  - link_end = '</a>'.html_safe
  .gl-alert-container
    = sprite_icon('error', css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
    .gl-alert-content
      .gl-alert-title
        = s_('Deprecations|Feature deprecation and removal')
      .gl-alert-body
        %p
          = html_escape(s_('Deprecations|The metrics, logs and tracing features were deprecated in GitLab 14.7, and are %{removal_link_start} scheduled for removal %{link_end} in GitLab 15.0. For information on a possible replacement, %{opstrace_link_start} learn more about Opstrace %{link_end}.')) % {removal_link_start: removal_epic_link_start, opstrace_link_start: opstrace_link_start, link_end: link_end }

- if @project.tracing_external_url.present?
  %h3.page-title= _('Tracing')
  .gl-alert.gl-alert-info.gl-mb-5
    .gl-alert-container
      = sprite_icon('information-o', css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
      .gl-alert-content
        .gl-alert-body
          = _("Your password isn't required to view this page. If a password or any other personal details are requested, please contact your administrator to report abuse.")
  - jaeger_link = link_to('Jaeger tracing', 'https://www.jaegertracing.io/', target: "_blank", rel: "noreferrer")
  %p.light= _("GitLab uses %{jaeger_link} to monitor distributed systems.").html_safe % { jaeger_link: jaeger_link }


  .card
    - iframe_permissions = "allow-forms allow-scripts allow-same-origin allow-popups"
    %iframe.border-0{ src: sanitize(@project.tracing_external_url, scrubber: Rails::Html::TextOnlyScrubber.new), width: '100%', height: 970, sandbox: iframe_permissions }
- else
  .row.empty-state
    .col-12
      .svg-content
        = image_tag 'illustrations/monitoring/tracing.svg'

    .col-12
      .text-content
        %h4.text-left= _('Troubleshoot and monitor your application with tracing')
        %p
          - jaeger_help_url = "https://www.jaegertracing.io/docs/getting-started/"
          - link_start_tag = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: jaeger_help_url }
          - link_end_tag = "#{sprite_icon('external-link', css_class: 'ml-1 vertical-align-middle')}</a>".html_safe
          = _('Add a Jaeger URL to replace this page with a link to your Jaeger server. You first need to %{link_start_tag}install Jaeger%{link_end_tag}.').html_safe % { link_start_tag: link_start_tag, link_end_tag: link_end_tag }

          .text-center
            = render 'tracing_button'