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.18b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476c18d1c30687d57fdc8bc8e840e1a120e5ba5e12a92afc24d78ef803dba294 |
|
MD5 | 3316e959f100859ae2bcbd90544f8980 |
|
BLAKE2b-256 | d994f15f6695eb454a167375b7b9e30a394b93fc16d65084786d02e51d45fb45 |
Hashes for opentelemetry_instrumentation_tornado-0.18b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4388cd8af80064b83ff3b1e315be338c497f088b33e0fd5fed493dfcee841300 |
|
MD5 | 4b350eac1bdfd8b9c872bfbdee1de59d |
|
BLAKE2b-256 | 02aa7d6f16e75cb344a95b88119b51c7550551e563d4b9023dad96a405c144c2 |