Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
jaeger_django-1.0.1-py3-none-any.whl (10.4 kB) Copy SHA256 hash SHA256 Wheel py3
jaeger-django-1.0.1.tar.gz (8.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page