Skip to main content

Jaeger Python OpenTracing Tracer implementation for AsyncIO

Project description

Unit tests Coverage Latest Version https://img.shields.io/pypi/wheel/async-jaeger.svg https://img.shields.io/pypi/pyversions/async-jaeger.svg https://img.shields.io/pypi/l/async-jaeger.svg

Client-side library that can be used for distributed trace collection from Python apps via TCP (HTTP) to Jaeger.

See the OpenTracing Python API for additional detail.

Installation

pip3 install async-jaeger

Debug Traces (Forced Sampling)

Programmatically

The OpenTracing API defines a sampling.priority standard tag that can be used to affect the sampling of a span and its children:

from opentracing.ext import tags as ext_tags

span.set_tag(ext_tags.SAMPLING_PRIORITY, 1)

Via HTTP Headers

Jaeger Tracer also understands a special HTTP Header jaeger-debug-id, which can be set in the incoming request, e.g.

curl -H "jaeger-debug-id: some-correlation-id" http://myhost.com

When Jaeger sees this header in the request that otherwise has no tracing context, it ensures that the new trace started for this request will be sampled in the “debug” mode (meaning it should survive all downsampling that might happen in the collection pipeline), and the root span will have a tag as if this statement was executed:

span.set_tag('jaeger-debug-id', 'some-correlation-id')

This allows using Jaeger UI to find the trace by this tag.

License

Apache 2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

async-jaeger-0.0.11.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

async_jaeger-0.0.11-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file async-jaeger-0.0.11.tar.gz.

File metadata

  • Download URL: async-jaeger-0.0.11.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for async-jaeger-0.0.11.tar.gz
Algorithm Hash digest
SHA256 d893f2fbc0a05ed068f5b328ff793a8fc3fa893baccd4e10545780a71dbc54f3
MD5 44fdbf6c97f3c6cde86b4188016293b2
BLAKE2b-256 ad17c39fd1dc150c2c4b6ed52de003b20998c9f756e6c344d461eeabb667474a

See more details on using hashes here.

File details

Details for the file async_jaeger-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: async_jaeger-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for async_jaeger-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 659ae9ff914c6066986fbe56cefbb3c83ec1299807ed88e4f535e8297a6bcb79
MD5 39b8e8645d71eb9e97f66f9ba5b30740
BLAKE2b-256 5bdadd52a3d8affe13df34c2cbfe7d93856f7aa1b015ba948695e79abc3f780f

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