def METHOD_NAME(sentry_init):
    sentry_init(integrations=[ChaliceIntegration()])
    METHOD_NAME = Chalice(app_name="sentry_chalice")
    @METHOD_NAME.route("/boom")
    def boom():
        raise Exception("boom goes the dynamite!")
    @METHOD_NAME.route("/context")
    def has_request():
        raise Exception("boom goes the dynamite!")
    @METHOD_NAME.route("/badrequest")
    def badrequest():
        raise BadRequestError("bad-request")
    @METHOD_NAME.route("/message")
    def hi():
        capture_message("hi")
        return {"status": "ok"}
    @METHOD_NAME.route("/message/{message_id}")
    def hi_with_id(message_id):
        capture_message("hi again")
        return {"status": "ok"}
    LocalGateway._generate_lambda_context = _generate_lambda_context
    return METHOD_NAME