-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate log record on setting basic config #36318
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @gracewilcox @gulopesd @Haiying-MSFT @jairmyree @joshfree @KarishmaGhiya @KevinBlasko @kurtzeborn @nisha-bhatia @pvaneck @sarangan12 @scottaddie @srnagar @ToddKingMSFT. |
Please pass in the name of the Python logger you would like to track telemetry for like in this example. Keep in mind that every logger that is in the same namespace as the name passed in will also be tracked. i.e., if I use |
@lzchen passing in the |
adding more details which I recently found the two log records being generated differ in details apart from the message
cloud role name is incorrect for the later sdk which is the duplicate record being generated |
The second sdk is for the opencensus python sdk which will be deprecated in September. |
@lzchen so it comes along with azure monitor distro is it? Because I remember removing it when migrating to open telemetry. |
It does not come with the distro. Opencensus should be completely separate from Open Telemetry. Please make sure you are not using the old opencensus sdk and that you are not querying old data from before your testing. Also please try out your app outside of an AKS environment to see if the issue persists. |
Hi @king-11. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
Hi @king-11, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
@lzchen so I confirmed that |
|
Closing this issue thanks for help @izchen one of our dependencies was pulling in |
Describe the bug
I am seeing duplicate logs in AKS for the python application after enabling formatting on the logger that I create for each module. There are two logs for each logging call in the AKS container logs one with default format and one with customized format that I defined.
To Reproduce
Create logger using below code:
The other approach I tried was modifying
get_logger
as below:This also results in duplicate logs
Expected behavior
Only my custom log should get printed
The text was updated successfully, but these errors were encountered: