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.25b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af8c88bc4d908235f845643d898c71df83ec13b110955cf3071fdaa4e006137 |
|
MD5 | ef6b3ac5ab403ad240e8581039bff3f6 |
|
BLAKE2b-256 | facd1bc14fe6bf31280dd5bb10440d5e3ed8d4813947d47525c12364d9926e6c |
Hashes for opentelemetry_instrumentation_tornado-0.25b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c0487f4ec89d79bab0f60d78544cba3eab1573a429844c01e925b8ad23a76e |
|
MD5 | f770bd3aeaaf4757baadf02a082e5d5a |
|
BLAKE2b-256 | 03ded0ef35e254cb0043c8a39f4d8a1b8e70284a87801556a451a92ad3ee0590 |