Leighton Chen

Results 327 comments of Leighton Chen

@GrantAnt > A number of projects within the opencensus-python repository are still being used as recommended production solutions This refers specifically to the [opencensus azure monitor exporters](https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-azure). For these exporters,...

@radohristov There are no current plans to support flask >3.0.0. Feel free to open up an issue/pr if you are interested.

@mgedmin The handler is not design to be added to the root logger since it would capture logs made by the handler itself as you have pointed out. Please use...

Are you running this in any container of some sort? Perhaps something with your backend api is preventing network calls to be made to the app insights backend

Are you perhaps using a databricks notebook to run this? This error usually occurs when you are adding multiple instances of the azure log handler to your logger.

@mosopeogundipe Could you paste a code snippet of how you are using the azure log handler?

Try adding: ```python root_logger = logging.getLogger() for handler in root_logger.handlers[:]: root_logger.removeHandler(handler) ``` before ``` logger = logging.getLogger(__name__) ``` in your code to remove duplicate logs.

@et-at-micro Thanks for doing this analysis. Curious would you be able to get the import time statistics for the trace and metrics exporters as well and compare them?

This does not seem an issue with the `opencensus-ext-azure` package specifically. The `opencensus` package has a dependency on [google-api-core](https://github.com/census-instrumentation/opencensus-python/blob/master/setup.py#L47), which in turn takes a dependency on a version of [protobuf](https://github.com/googleapis/python-api-core/blob/main/setup.py#LL33C51-L33C104)....