Skip to main content

service tracing using jaeger in django project

Project description

# 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 = [
'huipy.tracer.middleware.TraceMiddleware',
# 其他中间件
'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 tracer.httpclient import HttpClient
HttpClient(url='http://httpbin.org/get').get()
```



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jaeger-django-1.0.1.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

jaeger_django-1.0.1-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page