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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93ccbbb30927f0592d6428bead75849c7040357089466868f2a03bcfe6bdf69c |
|
MD5 | 59893329899b6c8f3407e037dd36e7bf |
|
BLAKE2b-256 | 1677dc8d8abc9e6b8fc9a4c19d4f4f5990a4b5c70d20f0e8d030d3f2c24aa567 |
Close
Hashes for opencensus_ext_django-0.7.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca13523f0ab07a24f5913faedddd4992175120e51e3e5938f2caaa4ed38043c9 |
|
MD5 | 533ad46354e2a8bb2b4b2cd6f6cae081 |
|
BLAKE2b-256 | 4253155e728001f0296ff7dbb89345ae81d0e9f7da482b2f904686e4752ce6ee |