معرفی شرکت ها


Flask-ApplicationInsights-0.2.6


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Microsoft Azure Application Insights integration for Flask.
ویژگی مقدار
سیستم عامل -
نام فایل Flask-ApplicationInsights-0.2.6
نام Flask-ApplicationInsights
نسخه کتابخانه 0.2.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Gregory Ghez
ایمیل نویسنده gregory.ghez@gmail.com
آدرس صفحه اصلی https://github.com/gghez/flask_applicationinsights
آدرس اینترنتی https://pypi.org/project/Flask-ApplicationInsights/
مجوز MIT
# flask_applicationinsights Flask extension for Microsoft Azure Application Insights. Make your Flask application able to send tracking information to an Application Insights Azure component. [![Build Status](https://travis-ci.org/gghez/flask_applicationinsights.svg?branch=master)](https://travis-ci.org/gghez/flask_applicationinsights) [![codecov](https://codecov.io/gh/gghez/flask_applicationinsights/branch/master/graph/badge.svg)](https://codecov.io/gh/gghez/flask_applicationinsights) ## Dependencies - flask>=1.0.2 - applicationinsights==0.11.6 > If you are encountering locale issues with application insights, please check this hack: https://github.com/Azure/azure-cli-shell/issues/63 ## Usage Retrieve package from pypi: ``` pip install flask_applicationinsights ``` > Instrumentation key can be provided programmatically as well as by environment variable or flask configuration key. Key name is `APPINSIGHTS_INSTRUMENTATION_KEY`. ### Basic Will track all requests (succeeded or failed) to your application insight referenced by its instrumentation key. ```python from flask import Flask from flask_applicationinsights import ApplicationInsights app = Flask(__name__) insight = ApplicationInsights(instrumentation_key='<yours>') insight.init_app(app) @app.route('/') def index(): return 'HIT' app.run() ``` ### Advanced You can also add custom properties or measurements to each tracked request by using special decorators. ```python ... insight = ApplicationInsights(...) ... @insight.properties def custom_properties(req: Request, resp: Response): return { 'req_pragma': req.headers.get('Pragma'), 'resp_charset': resp.charset } ``` ## Contribution Not open yet due to initial WIP.


نحوه نصب


نصب پکیج whl Flask-ApplicationInsights-0.2.6:

    pip install Flask-ApplicationInsights-0.2.6.whl


نصب پکیج tar.gz Flask-ApplicationInsights-0.2.6:

    pip install Flask-ApplicationInsights-0.2.6.tar.gz