Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

[opencensus-ext-azure] logger.info() and logger.debug() not being sent to App Insights #871

Closed

Description

@snobu

Using

Python 3.7.7 on macOS 10.15.3
 
opencensus-context==0.1.1
opencensus-ext-azure==1.0.2

logger.info(...) and logger.debug(...) do not get sent to Azure Application Insights.
Am i doing it wrong or is this a known issue?

logger.warning(...) for example produces the expected events in Application Insights.

To reproduce:

from opencensus.ext.azure.log_exporter import AzureLogHandler

logger = logging.getLogger(__name__)
logger.addHandler(AzureLogHandler(
    connection_string="InstrumentationKey=X-X-X-X")
)

logger.info("this is info")
logger.warning("this is a warning")
logger.debug("this is debug")
logger.error("this is an error")

Not filtering any traces:

image

Activity

  1. changed the title [-]logger.info() and logger.debug() not being sent to Application Insights[/-] [+][opencensus-ext-azure] logger.info() and logger.debug() not being sent to App Insights[/+] on Mar 20, 2020
  2. lzchen commented on Mar 20, 2020

    @lzchen
    Contributor

    See #866.

  3. snobu commented on Mar 20, 2020

    @snobu
    Author

    Thank you for that. Should i send a PR adding this little fact to the README? I'm not sure the root logger story is well known out there.

  4. lzchen commented on Mar 20, 2020

    @lzchen
    Contributor

    @snobu Yes that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions