def _setup_sentry_client(context):
<EOL>dsn = os.environ.get("<STR_LIT>")<EOL>try:<EOL><INDENT>client = raven.Client(dsn, sample_rate=SENTRY_SAMPLE_RATE)<EOL>client.user_context(_sentry_context_dict(context))<EOL>return client<EOL><DEDENT>except:<EOL><INDENT>rlogger.error("<STR_LIT>", exc_info=True)<EOL>return None<EOL><DEDENT>
Produce and configure the sentry client.