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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab2d22d876c811c5897c90d44cf225efe49c6fd255a7640e3d0063dd9d7f85d3 |
|
MD5 | 35855b031541404d13c9d855537fa38d |
|
BLAKE2b-256 | f758af94361f45acc428aaacc2e6786206382aa6009d9fb91b59092713aef156 |
Close
Hashes for opencensus_ext_django-0.7.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b8f156ac3705c8e8c2cedf2084c934070bdb81d7d1cf88aca8393b8ab93999 |
|
MD5 | 0a948c96f9cbd846796f349835589e83 |
|
BLAKE2b-256 | ba4a41f203f465ed1b7dec7a7ee05d10813cc4228e0f8c2eebe252eb5d5415ed |