Skip to main content

Falcon instrumentation for OpenTelemetry

Project description

pypi

This library builds on the OpenTelemetry WSGI middleware to track web requests in Falcon applications.

Installation

pip install opentelemetry-instrumentation-falcon

Configuration

Exclude lists

To exclude certain URLs from being tracked, set the environment variable OTEL_PYTHON_FALCON_EXCLUDED_URLS with comma delimited regexes representing which URLs to exclude.

For example,

export OTEL_PYTHON_FALCON_EXCLUDED_URLS="client/.*/info,healthcheck"

will exclude requests such as https://site/client/123/info and https://site/xyz/healthcheck.

Request attributes

To extract certain attributes from Falcon’s request object and use them as span attributes, set the environment variable OTEL_PYTHON_FALCON_TRACED_REQUEST_ATTRS to a comma delimited list of request attribute names.

For example,

export OTEL_PYTHON_FALCON_TRACED_REQUEST_ATTRS='query_string,uri_template'

will extract path_info and content_type attributes from every traced request and add them as span attritbues.

Falcon Request object reference: https://falcon.readthedocs.io/en/stable/api/request_and_response.html#id1

References

Project details


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-falcon-0.16b1.tar.gz.

File metadata

  • Download URL: opentelemetry-instrumentation-falcon-0.16b1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.9

File hashes

Hashes for opentelemetry-instrumentation-falcon-0.16b1.tar.gz
Algorithm Hash digest
SHA256 2797a9fe13c1e7593cc0411d91cef72593d8c82b2eb40f8f85791ac94778c0e7
MD5 e8e186ec9d6e5aaffbc9d1489a742baa
BLAKE2b-256 d0bca8f1f9fd183f3eefa6676aa9a3e76e77c513dddbd8b31033387b9a2fd74a

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_falcon-0.16b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_falcon-0.16b1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3aa58b84487747645a81594cdfeb2a20b355e94539a54558341bfc93e6d8b15
MD5 bb626b78d2c0a3aed5c8c04b40b070f0
BLAKE2b-256 67b162872455476c02468e65ad786c8eb166b63821dae808ba23a0298a57b8e8

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