{% from 'message_box.html' import message_box %} {% macro render_status(status, active, sdk_version, pending, test_url, reload_url) %}
{% trans %}Status of this worker{% endtrans %}
{% if status.error %} {% call message_box('error') %} {% trans error=status.error %}Sentry could not be initialised: {{ error }}{% endtrans %} {% endcall %} {% elif not active %} {% call message_box('warning') %} {% trans -%} Sentry is loaded but inactive because no DSN is configured. Set one above (or as SENTRY_DSN in indico.conf) and restart Indico. {%- endtrans %} {% endcall %} {% else %} {% call message_box('success') %} {% trans %}Sentry is active and events are being sent.{% endtrans %} {% endcall %} {% endif %} {% if pending %} {% call message_box('warning') %} {% trans settings=pending|join(', ') -%} These settings were saved but are not applied in this worker yet: {{ settings }}. Restart Indico (and the Celery workers) to apply them everywhere. {%- endtrans %} {% endcall %} {% endif %}
{% trans %}Sentry host{% endtrans %} {%- if status.dsn_host -%} {{ status.dsn_host }} ({% trans source=status.dsn_source %}from {{ source }}{% endtrans %}) {%- else -%} {% trans %}not configured{% endtrans %} {%- endif -%}
{% trans %}Environment{% endtrans %} {{ status.environment or '-' }}
{% trans %}Release{% endtrans %} {{ status.release or '-' }}
{% trans %}Integrations{% endtrans %} {{ status.integrations|join(', ') or '-' }}
{% trans %}Versions{% endtrans %} {% trans %}plugin{% endtrans %} {{ status.plugin_version }}, sentry-sdk {{ sdk_version }}

{% trans -%} Sentry is configured once per worker process. Settings marked "requires a restart" only take effect after Indico is restarted; "Reload in this worker" applies them to the single process serving this page, which is useful for testing a new DSN. {%- endtrans %}

{% endmacro %}