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.14b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f203212762dd215ceb6d4ad751ae8e82717012200d0ce090fda298afdcb46bd6 |
|
MD5 | 307254cf99cd0e59709d2e599b4ea4b5 |
|
BLAKE2b-256 | 3cf3f2309e88f7c311dc22b1a9f464e08c31bc0564ecc6522b699e1503da1bdd |
Hashes for opentelemetry_instrumentation_tornado-0.14b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc761af0e327118f05394930c78b1b616e94dab17943509966144b4294ebbfd |
|
MD5 | 663323b6fb0453311a7e3cadb9d65e5d |
|
BLAKE2b-256 | 08596d74162ed195c6c86770c132623c2f93675046f57395d86e4edb4a28e8fd |