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.7.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 635a452fc9a8d775e42f4180dc9097b293c00960459207f622affcd32b8794aa |
|
MD5 | 91be8cce48c408deed2263a7430a2b9b |
|
BLAKE2b-256 | 162c55b5c1ae8e7ec9f94e1c9de8aa831a4e3064ff7b08a8d887ac741a78482c |
Close
Hashes for opencensus_ext_django-0.7.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d0b739eedcd1cabbe6111d194c9ceaf2ef8a410511b0349fdca9c9b802e613 |
|
MD5 | 15bae2e6d2bcc48c7dcf91caeeba773b |
|
BLAKE2b-256 | e665c68ed7f315fd5d687ac51c2ccdc1c77ed91151c0efdd78463ae38f9a986e |