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

    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


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 details)

Uploaded Source

Built Distribution

jaeger_django-1.0.2-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file jaeger-django-1.0.2.tar.gz.

File metadata

  • Download URL: jaeger-django-1.0.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for jaeger-django-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7500fb956d7b0f6ff579c27ad65a9116c5c2a55674bddd2546b720636d5e91b6
MD5 dd4cafebacac7d72f16b56bfda045105
BLAKE2b-256 6bf181c0a31e318902d3d4485088b7090980d57c87eae19f1e984d3fe794fefc

See more details on using hashes here.

File details

Details for the file jaeger_django-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: jaeger_django-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for jaeger_django-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a150703a86a5b1ca8b81c88202bd8dbed2b5b62f6df12ee0087a485827a69c07
MD5 e7b290de466698a16a2ca4b67f4a2158
BLAKE2b-256 10180f4622c067624e58a57bceed3c9d33a9e14c61c24beb7fd11bdb5872e2ab

See more details on using hashes here.

Supported by

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