Просмотр исходного кода

Merge pull request #196 from aaronraimist/sentry

Enable sentry.io integration
pull/198/head
Slavi Pantaleev 6 лет назад
committed by GitHub
Родитель
Сommit
67a54f4ab5
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
2 измененных файлов: 10 добавлений и 2 удалений
  1. +6
    -0
      roles/matrix-synapse/defaults/main.yml
  2. +4
    -2
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 6
- 0
roles/matrix-synapse/defaults/main.yml Просмотреть файл

@@ -205,6 +205,12 @@ matrix_synapse_url_preview_enabled: true
matrix_synapse_metrics_enabled: false matrix_synapse_metrics_enabled: false
matrix_synapse_metrics_port: 9100 matrix_synapse_metrics_port: 9100


# Send ERROR logs to sentry.io for easier tracking
# To set this up: go to sentry.io, create a python project, and set
# matrix_synapse_sentry_dsn to the URL it gives you.
# See https://github.com/matrix-org/synapse/issues/4632 for important privacy concerns
matrix_synapse_sentry_dsn: ""

# Postgres database information # Postgres database information
matrix_synapse_database_host: "" matrix_synapse_database_host: ""
matrix_synapse_database_user: "" matrix_synapse_database_user: ""


+ 4
- 2
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Просмотреть файл

@@ -872,8 +872,10 @@ enable_metrics: {{ matrix_synapse_metrics_enabled|to_json }}
# information, and it in turn may then diseminate sensitive information # information, and it in turn may then diseminate sensitive information
# through insecure notification channels if so configured. # through insecure notification channels if so configured.
# #
#sentry:
# dsn: "..."
{% if matrix_synapse_sentry_dsn != "" %}
sentry:
dsn: {{ matrix_synapse_sentry_dsn|to_json }}
{% endif %}


# Whether or not to report anonymized homeserver usage statistics. # Whether or not to report anonymized homeserver usage statistics.
report_stats: {{ matrix_synapse_report_stats|to_json }} report_stats: {{ matrix_synapse_report_stats|to_json }}


Загрузка…
Отмена
Сохранить