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.12b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6a55879754b452f43403c587d04ae14c85c3e84b0fd29488a9556d4b4a9ab18 |
|
MD5 | 47507c28192eb76fa9dbff86048650f6 |
|
BLAKE2b-256 | a9e72263980a21c6abe3cc9a2c8db2ef1e930a0d9d0a9b1b18a30fa22edeb62c |
Close
Hashes for opentelemetry_instrumentation_flask-0.12b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a535c367d47d23b097909af6c4d55c62bb4e15dffa24cc9c3962a4264eeaf7d5 |
|
MD5 | 71909332c78eb9fcceadb68d5051d5b0 |
|
BLAKE2b-256 | 6c164a0220f046fdcaf732cd4d81733dbd55b92310f9d2778d8a98ee2394504c |