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

_sentry.html.haml « application_settings « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9f2a40e4e5432316d45e49bb585126dc201a7841 (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
= gitlab_ui_form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-sentry-settings'), html: { class: 'fieldset-form', id: 'sentry-settings' } do |f|
  = form_errors(@application_setting)

  %span.text-muted
    = _('Changing any setting here requires an application restart')

  %fieldset
    .form-group
      = f.gitlab_ui_checkbox_component :sentry_enabled, _('Enable Sentry error tracking')
    .form-group
      = f.label :sentry_dsn, _('DSN'), class: 'label-light'
      = f.text_field :sentry_dsn, class: 'form-control gl-form-input', placeholder: 'https://public@sentry.example.com/1'
    .form-group
      = f.label :sentry_clientside_dsn, _('Clientside DSN'), class: 'label-light'
      = f.text_field :sentry_clientside_dsn, class: 'form-control gl-form-input', placeholder: 'https://public@sentry.example.com/2'
    .form-group
      = f.label :sentry_environment, _('Environment'), class: 'label-light'
      = f.text_field :sentry_environment, class: 'form-control gl-form-input', placeholder: Rails.env

  %p.text-muted
    = _("Changing any setting bellow doesn't require an application restart")

  %fieldset
    .form-group
      = f.label :sentry_clientside_traces_sample_rate, _('Clientside traces sample rate'), class: 'label-light'
      = f.number_field :sentry_clientside_traces_sample_rate, class: 'form-control gl-form-input', placeholder: '0.5', min: 0, max: 1, step: 0.001

  = f.submit _('Save changes'), pajamas_button: true