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.19b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d993d849c2996e3c2bec2ce11e683538413a500620d7d86840e3205eb804cb |
|
MD5 | d60ea3419bbd9e08b522d2b21d7c22b3 |
|
BLAKE2b-256 | 273cfb8bf9ff148946abc0895fd3919df38b169e6d76980af402f112b91f8a5f |
Close
Hashes for opentelemetry_instrumentation_flask-0.19b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 670fc53f8fc3037e5aee69dc2529f4fb095ce0b83e5a761f799240828feb9b81 |
|
MD5 | d33b4dda2c261d8ae143c6b1569bc8cd |
|
BLAKE2b-256 | 8d1b8cd7d6797951053b6122a824ae2e56fbf13afc851d4a80a79006dafe06fc |