Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.63k stars 2.84k forks source link

Surpress Azure Monitor Log writting to StdErr #38624

Open johnkattenhorn opened 1 day ago

johnkattenhorn commented 1 day ago

Is your feature request related to a problem? Please describe. Azure Monitor Open Telemetry to Console write log entries destined for Azure Monitor to the Console using StdErr which makes the output noisy.

Describe the solution you'd like Like to be able to suppress the output of Azure Monitor so that it doesn't write to StdErr

Describe alternatives you've considered Tried to find a way to redirect the output to dummy file using alternative stream but this seemed to have undesired side-effects.

Additional context Any logs that we want outputted to the console are being managed through another logger using structlog

Image

github-actions[bot] commented 10 hours ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @gulopesd @Haiying-MSFT @jairmyree @joshfree @KarishmaGhiya @KevinBlasko @kurtzeborn @nisha-bhatia @pvaneck @sarangan12 @scottaddie @srnagar @ToddKingMSFT.

lzchen commented 6 hours ago

Could you paste your pip freeze as well as a code snippet of how you are instrumenting with Azure monitor OpenTelemetry SDK. Also, which logs specifically are noisy? The INFO logs?