Django tool for instrumenting
Project description
Instrumenting
install
$ pip install shopcloud-django-instrumenting
usage
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 Distribution
Close
Hashes for shopcloud_django_instrumenting-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af400a9a5efe2d655cb7290dd660ec28a8ff0cd1c572adfadb8434cf78cd80c |
|
MD5 | ba1fb2ffd2f148ff8e4a4e6321d77459 |
|
BLAKE2b-256 | c0584702a8600cd64cbf629fbdecb09dd0322dc3da235e357e11cd66d337fa27 |
Close
Hashes for shopcloud_django_instrumenting-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1050d90c9b0edf8a4280d0e8cb5836e3bb1519d7b6396d66198c3041fd8d3e7d |
|
MD5 | 6a1590279632b41bfb4f457334e5abc4 |
|
BLAKE2b-256 | 828efdffcf3ef7a1d011bbf6a3f0244a5044d55f3dacbddbc26bc41516668944 |