opencensus-python
opencensus-python copied to clipboard
A stats collection and distributed tracing framework
I'm testing using opencensus to send metrics to stackdriver on GCP. I followed the example of this link and used the same code: https://cloud.google.com/monitoring/custom-metrics/open-census. I test it locally (not on...
Versions: - python: 3.7.3 - Flask: 1.0.2 - OpenCensus modules: - opencensus 0.5.0 - opencensus-context 0.1.0 - opencensus-ext-azure 0.1.0 - opencensus-ext-flask 0.3.0 - opencensus-ext-requests 0.1.2 - opencensus-ext-threading 0.1.2 My app.py...
**Describe your environment.** Python3 flask application, running on Google Cloud Run, exporting traces and logs to stackdriver. The application makes calls to Datastore. The application has `opencensus-ext-google-cloud-clientlibs`. **Steps to reproduce.**...
**Describe your environment.** - Latest version 0.5.0. - With Django ext. - Configurations ``` OPENCENSUS = { 'TRACE': { 'SAMPLER': 'opencensus.trace.samplers.ProbabilitySampler(rate=1.0)', 'EXPORTER': '''opencensus.ext.jaeger.trace_exporter.JaegerExporter( service_name='okr', agent_host_name='128.0.0.1', agent_port=6831, transport=opencensus.common.transports.async_.AsyncTransport )''', } }...
Is it possible to `tracer.add_attribute_to_current_span` within a Flask middleware? I set up a basic middleware: ``` py from werkzeug.wrappers import Request from opencensus.trace import execution_context class IDMiddleware: def __init__(self, app):...
**Is your feature request related to a problem?** Not a problem. **Describe the solution you'd like.** Azure Tracing exporter currently only accepts `HTTP` dependency type, while there are many [others](https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-dependencies)....
Python 3.5.2 Django 2.2.10 opencensus==0.7.7 opencensus-context==0.1.1 opencensus-ext-azure==1.0.2 opencensus-ext-django==0.7.2 opencensus-ext-logging==0.1.0 The traces sent to Azure Monitor by the AzureExporter, collected by the opencensus Django middleware, set the custom properties `django.user.id` and...
The current default, `w+`, overwrites the contents of the file on the first write. Since `emit` opens and writes to the file every time it's called, this effectively rewrites the...
https://github.com/census-instrumentation/opencensus-python/issues/871 for context.
[Celery](http://www.celeryproject.org/) integration to be able to trace asynchronous tasks