semvec/pypi-packages huggingface dataset:
jaeger-django 1.0.2
service tracing using jaeger in django project
License: Apache License 2.0
Keywords: jaeger,tracing,django

# jaeger-django
This python package can be used in django project to  tracing service with jaeger. Enjoy!

## Install
`pip install jaeger-django`

## Usage
* Using middleware for inbound request
  settings.py in django

  ```python
  MIDDLEWARE = [
      'jaegertrace.middleware.TraceMiddleware',
      # other middleware
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'corsheaders.middleware.CorsMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  # service name
  SERVICE_NAME = 'service name'
  # other conf
  ...
  ```
* Using **httpclient** for outbound request
   ```python
   from jaegertrace.httpclient import HttpClient
   HttpClient(url='http://httpbin.org/get').get()
   ```