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.12b0.tar.gz.

File metadata

  • Download URL: opentelemetry-instrumentation-flask-0.12b0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for opentelemetry-instrumentation-flask-0.12b0.tar.gz
Algorithm Hash digest
SHA256 b6a55879754b452f43403c587d04ae14c85c3e84b0fd29488a9556d4b4a9ab18
MD5 47507c28192eb76fa9dbff86048650f6
BLAKE2b-256 a9e72263980a21c6abe3cc9a2c8db2ef1e930a0d9d0a9b1b18a30fa22edeb62c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_flask-0.12b0-py3-none-any.whl
Algorithm Hash digest
SHA256 a535c367d47d23b097909af6c4d55c62bb4e15dffa24cc9c3962a4264eeaf7d5
MD5 71909332c78eb9fcceadb68d5051d5b0
BLAKE2b-256 6c164a0220f046fdcaf732cd4d81733dbd55b92310f9d2778d8a98ee2394504c

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