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 Distribution

Built Distribution

File details

Details for the file opentelemetry-instrumentation-tornado-0.23b0.tar.gz.

File metadata

  • Download URL: opentelemetry-instrumentation-tornado-0.23b0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.11

File hashes

Hashes for opentelemetry-instrumentation-tornado-0.23b0.tar.gz
Algorithm Hash digest
SHA256 e9b9bc275f8499e196e483fd6faec8f1b73270f4e6e46d6cfc28dec60b371ca7
MD5 b3aa3d8eb63ce365af6a103e365af9fb
BLAKE2b-256 8bfbf347b8972c0f7184ec8b5cb1115bfaba441173037870d81ef5df2893420a

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_tornado-0.23b0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_tornado-0.23b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c05be119aa296ed3d368a923185074a63f16ef0926c76a163609b00da76cbadf
MD5 09460d53748fd460ccc02941a091b948
BLAKE2b-256 2e60a4b1ee9a7b3a6b22c27042dbb01366588b638447ab7f7543adae80aa1973

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