Skip to main content

python(django) tracing middleware tool: django-jaeger-middleware

Project description

shein-django-jaeger-middleware

shein 运维开发部专用的django jeager middleware

Installing

$ pip install shein-django-jaeger-middleware

shein_django_jaeger_middleware.middleware.JaegerMiddleWare 添加到setting.py文件的MIDDLEWARE

例如:

MIDDLEWARE = [
	...
	'shein_django_jaeger_middleware.middleware.JaegerMiddleware'
]

在配置文件中cfg.ini中添加配置信息

[jaeger]
service_name = your_service
reporting_host = your_jaeger_ip
reporting_port = your_jaeger_udp_port

Getting Started

从shein_django_jaeger_middleware引入requests,如原requests库一样使用

from shein_django_jaeger_middleware import requests

req = requests.get(url, headers=headers)

Enjoy!

如有问题请联系我:zhpan188@gmail.com

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

shein-django-jaeger-middleware-0.2.7.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

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