On Wednesday, March 16, 2016 at 9:36:44 PM UTC-4, Zsolt Ero wrote: > > David Cramer from Sentry replied to me that if Sentry is used with the > middleware, then it should automatically receive the WSGI context: > from sentry.middleware import Sentry > > application = Sentry(application, client=Client(dsn, ...)) > > My problem is that in Pyramid I have no idea where could I get an > application, or if this would work at all. >
That looks like the initial app setup in your `project/__init__.py` `application` would be what is returned from config.make_wsgi_app() Some people do "return config.make_wsgi_app()" Others prefer "app = config.make_wsgi_app()", then wrap it in middleware -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/d/optout.