Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.23 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.23 KB

django-zipkin-http

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!

How to install


  • Pip

    Pip install django-zipkin-http

  • setup.py

    1. Clone the project or download from Pypi
    2. Unzip the package then python setup.py install

Settings


  1. Add middleware in middleware classes

    MIDDLEWARE_CLASSES = (
        ...
        'django_zipkin_http.middleware.ZipkinMiddleware',
        ...
    )
    
  2. Add zipkin host

    settings.py

    ZIPKIN_HTTP_HOST = "http://host:port"
    
  3. Optional configuration

    ZIPKIN_HTTP_API = "/api/v1/"
    ZIPKIN_HTTP_SPAN = "/span/" # span uploading uri
    ZIPKIN_SERVICE_NAME = "HTTP-service" # service name shows in zipkin
    

Demo


To be done :P