Django-istio-opentracing
Django opentracing middleware works with k8s and istio
install:
pip install django-istio-opentracing
example:
Add a middleware to your Django middleware.
MIDDLEWARE += [
'django_istio_opentracing.middleware.Middleware'
]
And if you using requests,
jusing using the patch in maybe your __init__.py file.
Hint: make sure the patch line before your code.
from django_istio_opentracing import monkey
monkey.patch_requests()
Then use requests whatever you want, every request you make will carry the b3 code in header without extra coding.
Also you can use it directly in view:
from django_istio_opentracing import get_opentracing_span_headers
def index(request):
print(get_opentracing_span_headers())
return HttpResponse('ok')
Metadata
Release files for django-istio-opentracing 1.0.2
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_istio_opentracing-1.0.2.tar.gz | 4.8 kB | Without provenance | Details for django_istio_opentracing-1.0.2.tar.gz |
Release files / django_istio_opentracing-1.0.2.tar.gz
| Download URL | django_istio_opentracing-1.0.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e444ba8757bbf4d82f0dd56a6221f4cd4eb8f1e18b1d9d8fcfe406def29c5b1e
|
|
BLAKE2b-256 checksum How to use checksums |
8bc64e48250c639b5508e047a2e65e53326d83adb51ca95f70e1e59095524fd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.8
|
Security for django-istio-opentracing 1.0.2
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.