Django-py-zipkin
Django middleware and tracing utilities for submitting traces to Zipkin. py2 / py3 compatible.
Usage
Set the settings, if not set it’ll use defaults:
- ZIPKIN_SERVICE_NAME: unknown
The name to use when identifying the service being traced.
- ZIPKIN_TRANSPORT_HANDLER: django_py_zipkin.transport.zipkin_transport
Transport to use to submit traces to Zipkin. The default one submits in the background via Celery.
- ZIPKIN_ADD_LOGGING_ANNOTATION: True
Whether to add a ‘logging_end’ annotation when py_zipkin finishes logging spans
- ZIPKIN_TRACING_ENABLED: False
Whether or not to enable tracing, requires explicit enabling.
- ZIPKIN_TRACING_SAMPLING: 1.00
The sampling threshold
- ZIPKIN_BLACKLISTED_PATHS: []
List of regular expressions to ignore from tracing.
Add the middleware
MIDDLEWARE = [
...
'django_py_zipkin.middleware.ZipkinMiddleware',
...
]
Or instrument your code with the context manager:
with trace('span-name', request.zipkin_tracer) as context
traced_value = do_something_that_takes_time()
context.update({
'some.key': traced_value,
})
Metadata
Release files for django-py-zipkin 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-py-zipkin-1.0.0.tar.gz | 5.3 kB | Without provenance | Details for django-py-zipkin-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_py_zipkin-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for django_py_zipkin-1.0.0-py3-none-any.whl |
Total release size: 11.3 kB
Release files / django-py-zipkin-1.0.0.tar.gz
| Download URL | django-py-zipkin-1.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2994decf9b6071543d26a4a70d39d79e1996d46062c95960ec25895fe2ae7a5
|
|
BLAKE2b-256 checksum How to use checksums |
e4080cbc56cd55e289d5b456c6a57eb53cbe82c141f7ab885e552b1f9ba44396
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Release files / django_py_zipkin-1.0.0-py3-none-any.whl
| Download URL | django_py_zipkin-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
011ff0a73a0c3f8458b5b286c6ad04dffb13a5a52a63cd1fa3c1d56890abf7eb
|
|
BLAKE2b-256 checksum How to use checksums |
8083c0c4bd8d5c3a3dccce23f4fe935daeefc22e1b0d2c946f75b8b634b3fde0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Security for django-py-zipkin 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.