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.17b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a161ac59727cb648e117c2ea627b960390803866597341ea12f6a5352ac5fff0 |
|
MD5 | c03687f06f916f8f66db8553da86b5c7 |
|
BLAKE2b-256 | 492b4de8c12d55775c2c8a06bab85a4da307444be8f39bd2821c04b4a91490eb |
Hashes for opentelemetry_instrumentation_tornado-0.17b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fcc1bc81ef6e82bdf6e1cddb78f7cc53d0f341c3e86d284b10f733b23146b2f |
|
MD5 | b5fa3a20283b3a1dadcb60d5301dab1d |
|
BLAKE2b-256 | dcea367157b783475f03e850251961222f64b2ab343fae2a88ef926fb595b884 |