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.16b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6927085487b2cfc81cf745ba80ae0dcc2a7d7da59b5d74f2c6a2e3a0909d7cc3 |
|
MD5 | ce4a2a3da20442b68ed86c287e1cc825 |
|
BLAKE2b-256 | 354f2cc48a5b756da35fd25fdaa1ecbb0734dff5271f06cf6162e78601b69a89 |
Hashes for opentelemetry_instrumentation_tornado-0.16b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9da190ceb51dd979bb05a0ca3be5f3b63821f74f782162c828854c672e72a18 |
|
MD5 | ecdede2f7ef4848db7187e061b164722 |
|
BLAKE2b-256 | a6f8ff67e1e306ad4cb4db30160d9e69e015c9bcbade2cddeeb1bf67d6b0c356 |