Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve Flask integration #79
Unlike the Django integration for Application Insights, the Flask integration currently is quite low-level: the developer has to add a custom WSGI middleware and enable trace and exception logging themselves.
A more common pattern for adding groups of new capabilities to Flask is using custom extensions that initialize themselves against the Flask application: http://flask.pocoo.org/docs/0.12/extensiondev/
As such, this commit adds a custom extension for Flask that enables a developer to very easily add Application Insights integration to their Flask application just by doing
The extension enables:
Thanks for the merge, @SergeyKanzhelev! Any ideas when you'll be able to do a new release to PyPI? I have a partner who's already using this new Flask integration for Application Insights and it would be great to get them onto an official dependency instead of a Github zip archive.