I am trying to integrate Sentry into my company’s Pyramid web application. I’ve followed the integration docs here and my events are showing up in Sentry, which is great! https://docs.sentry.io/clients/python/integrations/pyramid/
My current issue is that I want to separate events by environment. To do that, what I’ve done is add the environment to the raven filter, like so:
[filter:raven] use = egg:raven#raven dsn = https://*****@sentry.io/284766 environment = 'dev'
However, what I’ve noticed is that very few of my events have the “environment” attribute set. I’ve checked the loggers being used, and it doesn’t seem like the sentry logger is being used - rather, the default pyramid logger is being used
log = logging.getLogger(__name__)
In order to pass all my events through the filter_raven, do I need to change every logger to the logger_sentry? Or is there some configuration that I’m missing?