def get_addon_host_ident(): ident = urlparse(options.get('system.url-prefix')).hostname if ident in ('localhost', '127.0.0.1', None, ''): return 'app.dev.getsentry.com' return ident