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.15b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 701257e154905cd7bff6819f78b3c1021cac7dc6b40a98f6a90b84f643347fb9 |
|
MD5 | 9bcb6e029ada3060e35a3b88f07e6af5 |
|
BLAKE2b-256 | d372e100d54da89dd1a5c3360958418dd73b6e84dd94672bd61c959f968b9a12 |
Hashes for opentelemetry_instrumentation_tornado-0.15b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d78d7f1bfa1bee7e851bf26d1d8ced8941d7cea401c1f839a96d5c4ce9cd4e1 |
|
MD5 | fa352b2b6c34a537b91054659646f31c |
|
BLAKE2b-256 | d6666de20e741124b224cdd1369a2150d51f2962bed1ec467f8a003791b33f0b |