Skip to main content

Tornado instrumentation for OpenTelemetry

Project description

pypi

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file opentelemetry_instrumentation_tornado-0.18b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_tornado-0.18b1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee4db12fd28ae2e1cc5ad4a4da9fc5172af17ad1b244032c3e4ad6c5838e3567
MD5 620a07f9dfd7ccc2ec2e28abd27640a0
BLAKE2b-256 ad784761c9e94488e1dd259bd4d60fcc7fb3c3367bfbbfb7e7caa878f089a7c2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page