diff --git a/doc/source/admin/special_topics/bug_reports.rst b/doc/source/admin/special_topics/bug_reports.rst index ef5ef431bf6..f2a6f79fe78 100644 --- a/doc/source/admin/special_topics/bug_reports.rst +++ b/doc/source/admin/special_topics/bug_reports.rst @@ -65,3 +65,8 @@ Sentry This refactors the existing on-failure submit-to-sentry behaviour into a bug reporting plugin. Now, for example, you are able to disable the automatic submission to sentry and only run that whenever the user reports it. + +When ``verbose="true" user_submission="true"``, the plugin will inform the user +that ``Submitted bug report to Sentry. Your guru meditation number is +dc907d44ce294f78b267a56f68e5cd1a``, using the same phrasing that is common to +users from Galaxy internal server errors. diff --git a/lib/galaxy/tools/error_reports/sinks/sentry.py b/lib/galaxy/tools/error_reports/sinks/sentry.py index 40864e45727..c770d1d195b 100644 --- a/lib/galaxy/tools/error_reports/sinks/sentry.py +++ b/lib/galaxy/tools/error_reports/sinks/sentry.py @@ -41,11 +41,12 @@ class SentryPlugin( ErrorSinkPlugin ): if 'message' in kwargs: extra['message'] = kwargs['message'] - self.app.sentry_client.capture( + response = self.app.sentry_client.capture( 'raven.events.Message', message="Galaxy Job Error: %s v.%s" % (job.tool_id, job.tool_version), extra=extra, ) + return ( 'Submitted bug report to Sentry. Your guru meditation number is %s' % response, 'done' ) __all__ = ( 'SentryPlugin', )