Metadata-Version: 1.1
Name: opencensus-ext-flask
Version: 0.7.5
Summary: OpenCensus Flask Integration
Home-page: https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-flask
Author: OpenCensus Authors
Author-email: census-developers@googlegroups.com
License: Apache-2.0
Description: OpenCensus Flask Integration
        ============================================================================
        
        |pypi|
        
        .. |pypi| image:: https://badge.fury.io/py/opencensus-ext-flask.svg
           :target: https://pypi.org/project/opencensus-ext-flask/
        
        Installation
        ------------
        
        ::
        
            pip install opencensus-ext-flask
        
        Usage
        -----
        
        .. code:: python
        
            from flask import Flask
            from opencensus.ext.flask.flask_middleware import FlaskMiddleware
            
            app = Flask(__name__)
            middleware = FlaskMiddleware(app, excludelist_paths=['_ah/health'])
            
            @app.route('/')
            def hello():
                return 'Hello World!'
            
            if __name__ == '__main__':
                import logging
                logger = logging.getLogger('werkzeug')
                logger.setLevel(logging.ERROR)
                app.run(host='localhost', port=8080, threaded=True)
        
        Additional configuration can be provided, please read
        `Customization <https://github.com/census-instrumentation/opencensus-python#customization>`_
        for a complete reference.
        
        .. code:: python
        
            app.config['OPENCENSUS'] = {
                'TRACE': {
                    'SAMPLER': 'opencensus.trace.samplers.ProbabilitySampler(rate=1)',
                    'EXPORTER': '''opencensus.ext.ocagent.trace_exporter.TraceExporter(
                        service_name='foobar',
                    )''',
                }
            }
        
        References
        ----------
        
        * `OpenCensus Project <https://opencensus.io/>`_
        
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
