32 lines
2.3 KiB
Plaintext
32 lines
2.3 KiB
Plaintext
= 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)
|
|
|
|
%fieldset.gl-text-subtle
|
|
= safe_format(s_('AdminSettings|GitLab uses the %{bold_start}Rails%{bold_end} and %{bold_start}Browser JavaScript%{bold_end} Sentry SDKs to send events to Sentry. For changes to Rails integration settings to take effect, restart GitLab.'), tag_pair(tag.b, :bold_start, :bold_end))
|
|
|
|
%fieldset
|
|
.form-group
|
|
= f.gitlab_ui_checkbox_component :sentry_enabled, s_('AdminSettings|Enable Sentry for Rails and Browser JavaScript')
|
|
.form-group
|
|
= f.label :sentry_environment, _('Environment'), class: 'label-light'
|
|
= f.text_field :sentry_environment, class: 'form-control gl-form-input', placeholder: Rails.env
|
|
.form-text.gl-text-subtle
|
|
= safe_format(s_('AdminSettings|%{setting_name} value used by both Rails and Browser JavaScript SDKs.'), setting_name: content_tag(:code, 'environment'))
|
|
.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-text.gl-text-subtle
|
|
= safe_format(s_('AdminSettings|%{setting_name} value used by the Rails SDK.'), setting_name: content_tag(:code, 'dsn'))
|
|
.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-text.gl-text-subtle
|
|
= safe_format(s_('AdminSettings|%{setting_name} value used by the Browser JavaScript SDK.'), setting_name: content_tag(:code, 'dsn'))
|
|
.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
|
|
.form-text.gl-text-subtle
|
|
= safe_format(s_('AdminSettings|%{setting_name} value used by the Browser JavaScript SDK.'), setting_name: content_tag(:code, 'tracesSampleRate'))
|
|
|
|
= f.submit _('Save changes'), pajamas_button: true
|