Jaeger Python OpenTracing Tracer implementation for AsyncIO
Project description
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
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 async-jaeger-0.0.10.tar.gz
.
File metadata
- Download URL: async-jaeger-0.0.10.tar.gz
- Upload date:
- Size: 45.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3821b70b6183d6e0d0e7c62ae7e77da47bbac375d8f61f93bec510f9577b6f2 |
|
MD5 | df5bd2f09a654152e0154b18caf861c0 |
|
BLAKE2b-256 | 11e5280536b09c17df00235a3e79c88143a4aed61925aad5e36ba6b377204c88 |
File details
Details for the file async_jaeger-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: async_jaeger-0.0.10-py3-none-any.whl
- Upload date:
- Size: 33.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 103afba3b81289bb91b829aec81aed1aa6ad60e7b75b6083d5f5540d4c5952de |
|
MD5 | 9824f78ec920bb4d23a9695e861ab9cd |
|
BLAKE2b-256 | 54483841e6c721a09cce6a3ab4c8eb2918f7b4d5e229ebc8c402664a915d14ac |