def initialize_sentry_integration():  
<EOL>try:<EOL><INDENT>import sentry_sdk<EOL>from sentry_sdk.integrations.pyramid import PyramidIntegration<EOL>from sentry_sdk.integrations.celery import CeleryIntegration<EOL><DEDENT>except ImportError:<EOL><INDENT>warnings.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>UserWarning,<EOL>)<EOL>return  <EOL><DEDENT>try:<EOL><INDENT>dsn = os.environ['<STR_LIT>']<EOL><DEDENT>except KeyError:<EOL><INDENT>warnings.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>UserWarning,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>sentry_sdk.init(<EOL>dsn=dsn,<EOL>integrations=[PyramidIntegration(), CeleryIntegration()],<EOL>)<EOL><DEDENT>
\
    Used to optionally initialize the Sentry service with this app.
    See https://docs.sentry.io/platforms/python/pyramid/