Questions tagged [opencensus]
87 questions
2
votes
1 answer
how to send metrics with OpenCensus
I am trying to send metrics in Python using OpenCensus and Azure Application Insights.
Ideally I would like to send some Python dictionaries with arbitrary structure, however it seems that OpenCensus is "automatically listening to logging/print…

TPPZ
- 4,447
- 10
- 61
- 106
2
votes
2 answers
Stackdriver Strace embedded traces for one request with python
I am using Stackdriver Trace to monitor the delays of some microservices, but am having some issues in making all the round trip to be shown as one request.
Say I have two services (to keep it simple). In order to get the traces from both of them, I…

suren
- 7,817
- 1
- 30
- 51
2
votes
1 answer
Custom OpenCensus metrics not appearing on Stackdriver
I'm trying to send custom metrics to Stackdriver from my Go application using OpenCensus.
I've followed the guide, so the views and exporter are setup:
import (
"context"
"contrib.go.opencensus.io/exporter/stackdriver"
…

noamt
- 7,397
- 2
- 37
- 59
2
votes
1 answer
opencensus exporter - one global or per thread?
I am using Opencensus to do some monitoring on a grpc server with 10 workers. My question is whether, when making a Tracer, the exporter for the tracer should be local or Global. IE
this is the server:
server =…

HeronAlgoSearch
- 1,581
- 2
- 18
- 35
2
votes
1 answer
OpenCensus Not Showing Traces On Google App Engine in Stack Driver
I am using OpenCensus as recommended by Google Cloud to run StackDriver Trace (https://cloud.google.com/trace/docs/setup/java). My configuration is running on Google App Engine Standard Java 8. I have ensure the API is enabled on the project, used…

Brian Bauman
- 1,000
- 1
- 9
- 23
1
vote
1 answer
Starting Apache Ignite Docker container with OpenCensus
I am trying to start an Apache Ignite Docker container (2.15.0 or 2.15.0-jdk11).
We need to get the metrics from the container with OpenCensus.
Now the documentation says there is an OpenCensus…

Mitch
- 79
- 8
1
vote
1 answer
Are traces sent from OpenCensus to OpenTelemetry recognizable
I have OpenCensus implemented in my Go application and planning on sending SpanContext to a downstream service that uses OpenTelemetry. The SpanContext would include populated TraceID, SpanID, Tracestate and I'm planning to send the SpanContext in…

Mustang
- 21
- 1
1
vote
0 answers
OpenCensus distributed tracing propagation using both Flask & requests
I'm attempting to implement distributed tracing via OpenCensus across different services where each service is using Flask for serving and sends downstream requests using... er.. requests to build its reply. The tracing platform is GCP Cloud…

Alex Mattson
- 33
- 5
1
vote
1 answer
Conda/Pip Environment creation fails with azureml & adlfs/opencensus-ext-azure
I am trying to create a local development environment using conda with azureml libraries. Following environment.yml file works fine.
name: cortixml_azure_env
channels:
- conda-forge
- defaults
dependencies:
- python=3.8.3
- pandas
- numpy
…

Arnab Biswas
- 4,495
- 3
- 42
- 60
1
vote
1 answer
Track python simpleHttp server logging information in azure application insights application map
We have different microservices(function apps, vm servers, etc) logging to application insights. A simple python http server is hosted on a linux VM, I want this server to receive a traceparent http header (W3C tracing) log the information to…

Ashish Gaude
- 283
- 2
- 9
1
vote
0 answers
Python opencensus flask set request-id header as set in FlaskMiddleware/AzureLogHandler
I'm using Azure Application Insights for my logging. I'm trying to set up an environment that all my logs have the same trace-id/request-id for visibility.
In the documentation for logging requests, by using the following code:
from flask import…

sheldonzy
- 5,505
- 9
- 48
- 86
1
vote
1 answer
Azure App Service ModueNotFoundError opencensus
I am trying to use application insights inside of a flask app using:
from opencensus.ext.azure.log_exporter import AzureLogHandler
but the runtime throws the following error:
ModuleNotFoundError: No module named 'opencensus'
However it works…

rooni
- 1,036
- 3
- 17
- 33
1
vote
1 answer
Is there a workaround to make opencensus work with MLFlow?
I'm not able to import mlflow after having launched a log with opencensus Azure.
The MLFlow import runs forever.
My environment is the following:
Python 3.7
opencensus-ext-azure 1.0.7
opencensus-ext-logging 0.1.0
mlflow 1.15.0
Here is the code to…

Nastasia
- 557
- 3
- 22
1
vote
0 answers
"Exception iterating requests" with Opencensus Python gRPC
I'm trying to send OpenCensus spans via gRPC to an OpenCensus collector with python as follows:
from opencensus.proto.agent.trace.v1.trace_service_pb2 import ExportTraceServiceRequest
from opencensus.proto.agent.trace.v1.trace_service_pb2_grpc…

lok
- 23
- 1
- 4
1
vote
2 answers
Remove customDimensions items from Application Insights when using opencensus-python
In the documentation on how to use opencensus-python to submit traces to Azure Application Insights, it's spelled out how to add additional information to the customDimensions field. That is,
import logging
from opencensus.ext.azure.log_exporter…

fuglede
- 17,388
- 2
- 54
- 99