OpenCensus Django Integration
Project description
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
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
Built Distribution
Close
Hashes for opencensus-ext-django-0.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e02d55aeafbf6048b68cdc1e07fdeed62fbf7c6775a746493c816af4ce67468a |
|
MD5 | 732ff5e0cfc2a8300694c3adac0cfbd0 |
|
BLAKE2b-256 | e779dd3b9f27cbc9734a30d41d2b1a57309c37871c7d43aec9a313e3764b61c2 |
Close
Hashes for opencensus_ext_django-0.8.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276fab11b99abbaa3eafae7a91aa7a084a71716c769c7bc8d932030bb9302769 |
|
MD5 | 9d6659c475f0eafe3a0f6ee6054b6e80 |
|
BLAKE2b-256 | ad6d2253fe3d9c4284aee2a178e3feba40e09b37c4158fe686883b1954dddac9 |