Skip to main content

Flask instrumentation for OpenTelemetry

Project description

pypi

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

File details

Details for the file opentelemetry-instrumentation-flask-0.19b0.tar.gz.

File metadata

  • Download URL: opentelemetry-instrumentation-flask-0.19b0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for opentelemetry-instrumentation-flask-0.19b0.tar.gz
Algorithm Hash digest
SHA256 b9d993d849c2996e3c2bec2ce11e683538413a500620d7d86840e3205eb804cb
MD5 d60ea3419bbd9e08b522d2b21d7c22b3
BLAKE2b-256 273cfb8bf9ff148946abc0895fd3919df38b169e6d76980af402f112b91f8a5f

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_flask-0.19b0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_flask-0.19b0-py3-none-any.whl
Algorithm Hash digest
SHA256 670fc53f8fc3037e5aee69dc2529f4fb095ce0b83e5a761f799240828feb9b81
MD5 d33b4dda2c261d8ae143c6b1569bc8cd
BLAKE2b-256 8d1b8cd7d6797951053b6122a824ae2e56fbf13afc851d4a80a79006dafe06fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page