I’ve just got started with Sentry, which is lovely. I’ve got about 10 different sites, some of which live on the same servers, which have names like web12.example.com. These server names get passed through to Sentry’s interface, so I can filter by which server the errors have come from. Filtering by server isn’t particularly useful – what would be useful is filtering by site.
Is there a way to change the server name to not be the actual server name, but (for example) the domain name that the error came from?
Sentry already does what I wanted, with the (apparently undocumented)
SENTRY_SITEsettings. I just set the following in mysettings.pyfile:and I can filter on it from the filters list on the right-hand side of the Sentry interface.
Server name isn’t intended for this purpose (presumably for people with large setups, it’s useful to see if lots of errors are coming from a particularly server, which may be indicative of configuration issues), this is what the site filter is for.