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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c01af5bd6c799d55cf585182ec0a9351e2227f214b1f4c0c76131ac2485839 |
|
MD5 | 8f5d5beb49335f6686447cbec0ebcfc3 |
|
BLAKE2b-256 | a72fc34d122b42ec65a3358b80dfc26ccdb095101d632a78a65b7fc722649d07 |
Close
Hashes for opencensus_ext_django-0.7.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc674a5119d26eaf02ec488967a9c3f98858afe07a76f1a4e60676a3ea642488 |
|
MD5 | dfd1f1f3fd5c006ab87062ed1964e1ad |
|
BLAKE2b-256 | 42bf00fd66b9293c8fb46186f599db34a38d3bdf11c13eac4afb3a2c26224f0b |