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.23b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90bebfc83f3f3e4c09fc8352c4b259170287cba69e5e6596b0f61254c11cd376 |
|
MD5 | 45e55b69dd23f431b8320458111ef158 |
|
BLAKE2b-256 | e62dc3e22bdec7344dc4b34cd05215948a8fe8648671c03d320423301236e81d |
Hashes for opentelemetry_instrumentation_tornado-0.23b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 537ea8434c2006a49e261ab40ac87208cd3b27bfb1fe75a8ddc990e86e1741ad |
|
MD5 | 8f93eb78be836a64d7ab74cd373459df |
|
BLAKE2b-256 | 4323514bf28d5586a6187b229add6e5612da4e6f227014fbeaa75d6faa1696b0 |