Tornado instrumentation for OpenTelemetry
Project description
This library builds on the OpenTelemetry WSGI middleware to track web requests in Tornado applications.
Installation
pip install opentelemetry-instrumentation-tornado
Configuration
The following environment variables are supported as configuration options:
OTEL_PYTHON_TORNADO_EXCLUDED_URLS
A comma separated list of paths that should not be automatically traced. For example, if this is set to
export OTEL_PYTHON_TORNADO_EXLUDED_URLS='/healthz,/ping'
Then any requests made to /healthz and /ping will not be automatically traced.
Request attributes
To extract certain attributes from Tornado’s request object and use them as span attributes, set the environment variable OTEL_PYTHON_TORNADO_TRACED_REQUEST_ATTRS to a comma delimited list of request attribute names.
For example,
export OTEL_PYTHON_TORNADO_TRACED_REQUEST_ATTRS='uri,query'
will extract path_info and content_type attributes from every traced request and add them as span attributes.
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-tornado-0.21b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a8bb78c0e31b131896ebf1480f9861689905bbb256f6756064cf666879539d |
|
MD5 | ef98fd822122027a2c49b12793c9933d |
|
BLAKE2b-256 | 7d9dd00d1b487517d27f84f74a5eafa59a9e2d09fe7b00a2b2f9c9453eb1af3c |
Hashes for opentelemetry_instrumentation_tornado-0.21b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ba1556efe91d11cf017f4b34496fad8495edeb65286d5d5ca9fc2d06073fca2 |
|
MD5 | 04f4b9eb049daf7150db1ffdadb46b41 |
|
BLAKE2b-256 | d8c6a9bf6fdfbe75cc0846e29a32d4b3d9b77089cc05a01d0f3210950bede392 |