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.21b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792feb32a4a67f5670354c01c6472a0fd8469feed01472303338199be4667b3d |
|
MD5 | 53d9b3096c565b39e670f76d0e7b7df4 |
|
BLAKE2b-256 | feda7cc72d782e97605b62c9413881714dea52117a5f210b5cb4208d826762a4 |
Hashes for opentelemetry_instrumentation_tornado-0.21b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 724a1f9cb212741200caf8a8f7c31cd3450c9fae524507141310f290ea676e94 |
|
MD5 | 76257071ec23b88164c1425d1c124098 |
|
BLAKE2b-256 | 03b408b91f9a820ab1d5d0301f5f7e80d49303c61f671da069bc436f2ac2c303 |