This message was deleted.
# ask-for-help
s
This message was deleted.
s
is there anyway that I can access the flask app that is being created in the Bentoservice and add a middleware like the following
Copy code
application = Flask(__name__)
application.wsgi_app = PinPointMiddleWare(application, application.wsgi_app)
@Aaron Pham @Jiang can you please help?
I see that in ModelApp class under bentoml.server.model_app.py we have
Copy code
for middleware in (InstrumentMiddleware,):
            self.app.wsgi_app = middleware(self.app.wsgi_app, self.bento_service)
even if i can access the ModelApp object which was initiated during runtime, I can extend the middleware for flask