Falcon instrumentation for OpenTelemetry
Project description
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
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
Hashes for opentelemetry-instrumentation-falcon-0.16b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2797a9fe13c1e7593cc0411d91cef72593d8c82b2eb40f8f85791ac94778c0e7 |
|
MD5 | e8e186ec9d6e5aaffbc9d1489a742baa |
|
BLAKE2b-256 | d0bca8f1f9fd183f3eefa6676aa9a3e76e77c513dddbd8b31033387b9a2fd74a |
Hashes for opentelemetry_instrumentation_falcon-0.16b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3aa58b84487747645a81594cdfeb2a20b355e94539a54558341bfc93e6d8b15 |
|
MD5 | bb626b78d2c0a3aed5c8c04b40b070f0 |
|
BLAKE2b-256 | 67b162872455476c02468e65ad786c8eb166b63821dae808ba23a0298a57b8e8 |