Django tool for instrumenting
Project description
Instrumenting
install
- install with your favorite Python package manager
pip3 install shopcloud-django-instrumenting
LogRequestMiddleware
add additional Information from request in AppEngine to Log
usage
add to MIDDLEWARE in django-app settings.py:
MIDDLEWARE = [
...
'shopcloud_django_instrumenting.middleware.LogRequestMiddleware',
]
tracing
from shopcloud_django_instrumenting import tracing
tr = tracing.Tracer('name_of_service', 'name_of_operation')
with tr.start_span('event.processing') as span:
pass
data = tr.close()
deploy
$ rm -rf build dist
$ pip3 install wheel twine
$ python3 setup.py sdist bdist_wheel
$ twine upload dist/*
develop
$ pytest
$ pip3 install coverage
# shell report
$ coverage run -m pytest && coverage report --show-missing
# html report
$ coverage run -m pytest && coverage html
$ cd htmlcov
$ python3 -m http.server
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 Distributions
Close
Hashes for shopcloud_django_instrumenting-1.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e710a821d76f02c4185e142223f7d99af1ba8678d446e9c35aad90cbc0256478 |
|
MD5 | 803bb879f35e1590eee8227cea7452b3 |
|
BLAKE2b-256 | 5603dc7d8bd5145b6eb74d4ddc21066d19391c0ff057e935590f88f78fb9aa50 |
Close
Hashes for shopcloud_django_instrumenting-1.1.4-py3.11.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dd24ba562be052606fa2cbab5d9458597848fd84c6c944fef7acfef6a17e6bc |
|
MD5 | 1e59d333edec7545003549c7b89cead5 |
|
BLAKE2b-256 | 9b1e6a536ca4c0c632a5f559e04ec453d446839354acc1829b1f9c736902c3ac |
Close
Hashes for shopcloud_django_instrumenting-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de00c55213482e3f20be85543418651686f9196c5ccf9fded5a8a747a025ebf7 |
|
MD5 | 39b15c8c7f8a689f56437dbd448cec37 |
|
BLAKE2b-256 | 404ed6495688427e32543f0f69c60f7d539ed1b675aef552199f4c407622c42e |