Flask instrumentation for OpenTelemetry
Project description
This library builds on the OpenTelemetry WSGI middleware to track web requests in Flask applications.
Installation
pip install opentelemetry-instrumentation-flask
Configuration
Exclude lists
To exclude certain URLs from being tracked, set the environment variable OTEL_PYTHON_FLASK_EXCLUDED_URLS with comma delimited regexes representing which URLs to exclude.
For example,
export OTEL_PYTHON_FLASK_EXCLUDED_URLS="client/.*/info,healthcheck"
will exclude requests such as https://site/client/123/info and https://site/xyz/healthcheck.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for opentelemetry-instrumentation-flask-0.22b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a30a0d00a363c69d1c75e39d6345369bf171e9b847ddca42b157eb63a01cc947 |
|
MD5 | 0054c70599d5f1e71b92008a1d5cd3ce |
|
BLAKE2b-256 | d5504148408ec490f4a4b97b8819c340c00fcfa469c3a248657b2b0254534645 |
Close
Hashes for opentelemetry_instrumentation_flask-0.22b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 387fea92484234aea4e546df3562bdf717116dcdde3a252fdcb4af32a9ba1118 |
|
MD5 | da6e0eb4d0fbe5d5e59f0234b6c15a8b |
|
BLAKE2b-256 | 93ae1aa55598e24bced374c38ebc2d11b0be6f8d31ff271e44ef074f6d46eee5 |