python-flask
python-flask copied to clipboard
OpenTracing instrumentation for the Flask microframework
In the opentracing API the scope manager is stored in the property [`_scope_manager`](https://github.com/opentracing/opentracing-python/blob/7d2e62b5999d3cdec9a9c2720a34a1d11f425461/opentracing/tracer.py#L36) and can be accessed as [`scope_manager`](https://github.com/opentracing/opentracing-python/blob/7d2e62b5999d3cdec9a9c2720a34a1d11f425461/opentracing/tracer.py#L43). Currently, the property `_scope_manager` is not set in the `FlaskTracing` class....
Traced_attributes is given and scanned in _after_request_fn too. The motivation is that this way the attributes of the response object could be presented in the trace also. Our goal is...
The wavefront tracer specifically requires span names be non-None: ``` ValueError ValueError: Span name cannot be blank ``` ``` ValueError ValueError: Span name cannot be blank Traceback (most recent call...
As a workaround, one could run `python3 server.py`. I suppose it's a side effect of https://github.com/jaegertracing/jaeger-client-python/issues/50.
The use case is when you want to trace all URL/Method except some (ex : status/health page) . The proposal is to have a exclude_url dict that will permit to...
I have this code, `` @app.route('/') def pull_requests(): url = 'http://localhost:5002/' r = requests.t(url) return r.text `` In this service will get a span ,in other service 'http://localhost:5002/' will get...
Related to https://github.com/uber-common/opentracing-python-instrumentation/issues/52 I'm trying to use `install_all_patches()` but the instrumentation spans are not attached to the current request, because this module doesn't use `RequestContextManager`. I think this behaviour should...
Seems like the plugin does not support deferred app initialization like other plugins do. To avoid any cyclic imports in the app it would be great to have init_app method...
This may be a bit too generic question, but I'm attempting it anyway: It would be awesome if the there was examples of a more "real-life" flask app. As a...