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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46661157c6ba345ac9eb7bc33078db69268e832a1f0aa2d62bc8eeb283658bf7 |
|
MD5 | 1f8efb78a2bed04ad54627db2d92b5ee |
|
BLAKE2b-256 | 8c07d7eea7efd2f11686260d3de97c93f7cc66c029b5a254b583cb1424b929e5 |
Close
Hashes for opencensus_ext_django-0.7.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae351838ba48155fc028519d7196b4cb7944a95104ed0393af8883b23682f3c |
|
MD5 | 03be6185ae77266b8e6c01169172f1b9 |
|
BLAKE2b-256 | 31fd3b9ffc363dea2b1135aacaa2e49000975b7cffb16962595eab626a2d34df |