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.24b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75c90dbf2807f9c229074e271262b434c47614fa35b5a994647d93bbd83479ec |
|
MD5 | 57d204cbf804e4a94a3011590d28b78f |
|
BLAKE2b-256 | fcb63f9474fc8f72385352dc7eef169bc53783e077b3978f4fd0e12285c39527 |
Hashes for opentelemetry_instrumentation_tornado-0.24b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a3aaa7978b0ed9c49e7d076522a612b1a5877f7b1493104306884b52cab5f4 |
|
MD5 | 6003cc52bb500b9150f1c13059de7e65 |
|
BLAKE2b-256 | 0ad1ca4e8e335c735f796ef8eb47cb0f6f6e0c6286a6a132c653a9c71ef2dc3d |