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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry-instrumentation-flask-0.22b0.tar.gz.
File metadata
- Download URL: opentelemetry-instrumentation-flask-0.22b0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a30a0d00a363c69d1c75e39d6345369bf171e9b847ddca42b157eb63a01cc947
|
|
| MD5 |
0054c70599d5f1e71b92008a1d5cd3ce
|
|
| BLAKE2b-256 |
d5504148408ec490f4a4b97b8819c340c00fcfa469c3a248657b2b0254534645
|
File details
Details for the file opentelemetry_instrumentation_flask-0.22b0-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_flask-0.22b0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
387fea92484234aea4e546df3562bdf717116dcdde3a252fdcb4af32a9ba1118
|
|
| MD5 |
da6e0eb4d0fbe5d5e59f0234b6c15a8b
|
|
| BLAKE2b-256 |
93ae1aa55598e24bced374c38ebc2d11b0be6f8d31ff271e44ef074f6d46eee5
|