Sending logs to Azure Monitor from Python is not working anymore

Giancarlo 20 Reputation points
2024-10-29T13:25:14.9933333+00:00

Is there something happening with Azure Monitor? I know opencensus-ext-azure was deprecated last month.

pip install azure-monitor-opentelemetry==1.6.2


from logging import INFO, getLogger

from azure.monitor.opentelemetry import configure_azure_monitor

configure_azure_monitor(

    connection_string="my-connection-string",

    logger_name="azure_monitor",

)

logger = getLogger("azure_monitor")

logger.setLevel(INFO)

logger.info("test")



Retrying due to server request error: 
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,320 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.