This is a django zipkin middleware, send information to zipkin via HTTP protocol. Referring to django-zipkin
django-zipkin-http is a middleware for django to send report to Zipkin. It can be used as some kind of HTTP client*(or reporter)* for Zipkin.
You can eithor report issues on github, or contact me at 934214227@qq.com. Suggestions and issues are most welcomed!
-
Pip
Pip install django-zipkin-http
-
setup.py
- Clone the project or download from Pypi
- Unzip the package then
python setup.py install
-
Add middleware in middleware classes
MIDDLEWARE_CLASSES = ( ... 'django_zipkin_http.middleware.ZipkinMiddleware', ... )
-
Add zipkin host
settings.py
ZIPKIN_HTTP_HOST = "http://host:port"
-
Optional configuration
ZIPKIN_HTTP_API = "/api/v1/" ZIPKIN_HTTP_SPAN = "/span/" # span uploading uri ZIPKIN_SERVICE_NAME = "HTTP-service" # service name shows in zipkin
To be done :P