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.16b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4ded80bc01538c447f45b603c5b649e39993d47591533d04f0d30b193c12ba |
|
MD5 | 7e4a31f77c8b958f7c936859f361ef8e |
|
BLAKE2b-256 | 16c23efe8a83913cc12596dda0859e8cc62dbef01133e5e2529f33e736b86efe |
Hashes for opentelemetry_instrumentation_tornado-0.16b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6fc658dad7f68c85ef30c72d09520e615842be1e20bb6217d798857a8a41329 |
|
MD5 | d13bbcfd6bbb0dd9e7f224a893c87e58 |
|
BLAKE2b-256 | 1500fd5477649a98c0fa7fb9639f735af741a9ba94738a88d7051a9ac332e01d |