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
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
from jaegertrace.httpclient import HttpClient HttpClient(url='http://httpbin.org/get').get()
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for jaeger_django-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a150703a86a5b1ca8b81c88202bd8dbed2b5b62f6df12ee0087a485827a69c07 |
|
MD5 | e7b290de466698a16a2ca4b67f4a2158 |
|
BLAKE2b-256 | 10180f4622c067624e58a57bceed3c9d33a9e14c61c24beb7fd11bdb5872e2ab |