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.20b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 930ebcecbf0c6fa627c693b829be3926b99091904fe03f6125e5d16c1f830060 |
|
MD5 | 2b435ce047fab52f60dd4742bc59cea1 |
|
BLAKE2b-256 | b9f69cb3bb9d660710fd7f1cee240d6cdd1168900e6e556db63a846d1cdda693 |
Hashes for opentelemetry_instrumentation_tornado-0.20b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 806115e1aaf986b203fee7fe2e6506f3ba36eb258b22fc272f40ee050b149d9d |
|
MD5 | 4a377871cc41da8e036e682aef617e2e |
|
BLAKE2b-256 | ea0717b0d983af1168f2b1680e643b6e86fb96115e01c356008315ac07136b29 |