Skip to main content

pypi

Installation

pip install opencensus-ext-django

Usage

For tracing Django requests, you will need to add the following line to the MIDDLEWARE section in the Django settings.py file.

MIDDLEWARE = [
    ...
    'opencensus.ext.django.middleware.OpencensusMiddleware',
]

Additional configuration can be provided, please read Customization for a complete reference.

OPENCENSUS = {
    'TRACE': {
        'SAMPLER': 'opencensus.trace.samplers.ProbabilitySampler(rate=1)',
        'EXPORTER': '''opencensus.ext.ocagent.trace_exporter.TraceExporter(
            service_name='foobar',
        )''',
    }
}

References

Download files

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

Source Distribution

opencensus-ext-django-0.8.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencensus_ext_django-0.8.0-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file opencensus-ext-django-0.8.0.tar.gz.

File metadata

  • Download URL: opencensus-ext-django-0.8.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for opencensus-ext-django-0.8.0.tar.gz
Algorithm Hash digest
SHA256 e02d55aeafbf6048b68cdc1e07fdeed62fbf7c6775a746493c816af4ce67468a
MD5 732ff5e0cfc2a8300694c3adac0cfbd0
BLAKE2b-256 e779dd3b9f27cbc9734a30d41d2b1a57309c37871c7d43aec9a313e3764b61c2

See more details on using hashes here.

File details

Details for the file opencensus_ext_django-0.8.0-py2.py3-none-any.whl.

File metadata

  • Download URL: opencensus_ext_django-0.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for opencensus_ext_django-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 276fab11b99abbaa3eafae7a91aa7a084a71716c769c7bc8d932030bb9302769
MD5 9d6659c475f0eafe3a0f6ee6054b6e80
BLAKE2b-256 ad6d2253fe3d9c4284aee2a178e3feba40e09b37c4158fe686883b1954dddac9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

1 file

0.7.1

1 file

0.7.0

2 files

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.0

1 file

0.1.0

1 file

Supported by

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