 <p>Editing the raven context is currently quite hard as the error reporters are not registered anywhere, so you cannot say "hey give me the error reporters" and look for the Sentry one in that list.</p> <p>Currently the only way is to register an <code>after_config</code> hook, gather the Raven Client during the configuration process and store it somewhere accessible. </p> <p>Changing backlash middlewares to store the reporters somewhere accessible should be fairly easy (e.g. the environ) but currently it's not available.</p> <p>By the way here is a short example of the <code>after_config</code> solution that should make the client available as <code>tg.app_globals.sentry_clients</code>, copy it in your <code>app_cfg.py</code> and it should do what you expect (didn't have time to try it, sorry if you find errors), then you can get the context from the client whenever is needed:</p> <pre><code>def gather_sentry_client(app): from backlash import TraceErrorsMiddleware, TraceSlowRequestsMiddleware try: trace_errors_app = app.app.application except: return app if not isinstance(trace_errors_app, TraceErrorsMiddleware): return app trace_errors_client = None for reporter in trace_errors_app.reporters: if hasattr(reporter, 'client'): trace_errors_client = reporter.client slow_reqs_app = trace_errors_app.app slow_reqs_client = None if isinstance(slow_reqs_app, TraceSlowRequestsMiddleware): for reporter in slow_reqs_app.reporters: if hasattr(reporter, 'client'): slow_reqs_client = reporter.client from tg import config app_globals = config['tg.app_globals'] app_globals.sentry_clients = { 'errors': trace_errors_client, 'slowreqs': slow_reqs_client } return app from tg import hooks hooks.register('after_config', gather_sentry_client) </code></pre>