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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for opencensus_ext_django-0.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a0a90165e075be03fc058288377147b53d874f243e94e724d44c264c931aa3 |
|
MD5 | 0a00a8d21e85069153aa6e95396eea06 |
|
BLAKE2b-256 | 56cc2fd6f43a4bb1a6255e94fed6e00ad071abd87af98fe01dcd294d4fcc3aa6 |