luanfonceca/speakerfight

Add Sentry User Feedback

Open

#282 建立於 2017年10月3日

在 GitHub 查看
 (1 留言) (2 反應) (0 負責人)Python (135 fork)github user discovery
easyenhancementhacktoberfest

倉庫指標

Star
 (342 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Enabling User Feedback allows you to interact with your users on an unprecedented level. Collect additional details about issues affecting them, and more importantly reach out to them with resolutions.

When configured, your users will be presented with a dialog prompting them for additional information. That information will get attached to the issue in Sentry

And add this snippet:

<!-- Sentry JS SDK 2.1.+ required -->
<script src="https://cdn.ravenjs.com/2.1.0/raven.min.js"></script>

{% if request.sentry.id %}
  <script>
  Raven.showReportDialog({
    // grab the eventId generated by the Sentry SDK
    eventId: '{{ request.sentry.id }}',

    // use the public DSN (dont include your secret!)
    dsn: 'https://255eac1a3c61488daf6fb757f8565da5@sentry.io/27561'
  });
  </script>
{% endif %}

貢獻者指南