Questions tagged [opencensus]

87 questions
1
vote
1 answer

How to instrument Prometheus Gauge using OpenCensus?

I am trying to find a way to instrument Prometheus Gauge metrics using OpenCencus in Golang. The goal is to track no of active sessions. So value can increase and decrease and also can reset to 0 on server restart. They have an example of it…
hemu
  • 3,199
  • 3
  • 44
  • 66
1
vote
0 answers

Trying to get some trace information from a Python Google Cloud Function into Cloud Trace

I have a couple of Cloud Functions that make remote calls out to a 3rd party API and I would like to be able to gather latency metrics in Cloud Trace for those calls. I'm trying to find a barebones working piece of example code that I can build off…
1
vote
1 answer

Django server not working with AzureLogHandler (opencensus)

I'm trying to connect my django project logs to Azure Application Insights using OpenCensus. The middleware for montirong requests works well but I also want to send telemetry logs (not just requests) to Azure. Here is my django LOGGING…
RomainD
  • 141
  • 1
  • 6
1
vote
1 answer

can I trace sub called function with OpenCensus?

I want to trace the whole project with Opencensus and Jaeger. I added HTTP trace in entry services and add stratspan in middleware surrounded whol my services and this two-span called and show on Jaeger. My problem is each service contain a lot of…
1
vote
1 answer

How to debug opencensus metrics agent?

I am having a hard time debugging why my metrics don't reach my prometheus. I am trying to send simple metrics to oc agent and from ther pull them with prometheus, but my code does not fail and I can't see the metrics in prometheus. So, how can I…
Roger that
  • 442
  • 6
  • 21
1
vote
1 answer

Error in OpenCensus in Google Kubernetes Engine with Python

I am deploying containers to GKE that contain Python apps and encountering an error when I try to use OpenCensus to send trace messages: Traceback (most recent call last): File…
seawolf
  • 2,147
  • 3
  • 20
  • 37
1
vote
2 answers

Simple hello world demo for writing custom OpenCensus metrics to StackDriver on GKE?

Is there a simple hello world sample for creating and writing custom metrics in a GKE application to StackDriver? I see there’s a couple larger demo projects that seem to use it,…
1
vote
1 answer

Observability: can we filter by tags then aggregate on prometheus or any metrics backend server

For example, I call Redis server with following command: SET key "value" After running, I want to track those 2 information at the same time: statistic of all write operators (so tag should be SET) statistic of all specific operators (so tag…
Trần Kim Dự
  • 5,872
  • 12
  • 55
  • 107
1
vote
0 answers

How to install the OpenCensus extension with PECL on PHP

Following the instructions (here: https://github.com/census-instrumentation/opencensus-php) I am unable to install the OpenCensus extension for PHP using PECL. I have tried installing other PECL extensions, which worked fine. I have also tried doing…
1
vote
0 answers

gRPC Stackdriver issue

I have tried to log call stack info through opencensus. I have enabled permission in google account. I am using default credentials method. Stackdriver Trace API is enabled for the corresponding account. Permission for monitoring.viewer,…
user2449952
  • 581
  • 1
  • 7
  • 21
1
vote
1 answer

Can the opencensus stats python stackdriver exporter be used in the python 2 app engine standard environment?

In the docs it says to install a cloud client library (pip install google-cloud-monitoring). However the cloud client libraries aren't available in the python2 standard environment on app engine, described here. To use the stackdriver exporter, do…
1
vote
1 answer

opencensus - explicit context management

I am implementing an opencensus tracing in my (asynchronous) JVM app. However I don't understand how is the context passed. Sometimes it seems to work fine, sometimes traces from different requests appear nested for no reason. I also have this…
nha
  • 17,623
  • 13
  • 87
  • 133
0
votes
1 answer

Azure function keeps sending the same metric value overtime

I want to send some metric data to Azure appinsight, I am using Azure function ,this is my code : from opencensus.ext.azure import metrics_exporter from opencensus.stats import aggregation as aggregation_module from opencensus.stats import measure…
0
votes
1 answer

How to manually connect nodes in the application map?

I want to do this: the function I wish to connect to the others does use the requests library to hit both external and internal APIs but these links don't show in the application map. Is there a way to connect them manually? If the solution is not…
0
votes
1 answer

How to change the application insights cloud role name for an azure function in python?

Basically as said in title. I've read doc on callback functions and changes of variables but where does this all go? I suspect I'm missing something but im not sure what What needs to exist for this change to happen? I suspect its something to do…