This library builds on the OpenTelemetry WSGI middleware to track web requests in Flask applications.
pip install opentelemetry-ext-flask
Excludes certain hosts and paths from being tracked. Pass in comma delimited string into environment variables. Host refers to the entire url and path refers to the part of the url after the domain. Host matches the exact string that is given, where as path matches if the url starts with the given excluded path.
Excluded hosts: OPENTELEMETRY_PYTHON_FLASK_EXCLUDED_HOSTS Excluded paths: OPENTELEMETRY_PYTHON_FLASK_EXCLUDED_PATHS