-
Notifications
You must be signed in to change notification settings - Fork 107
Categorize SDK logs as system logs #850
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit comments; lgtm.
@@ -20,6 +19,15 @@ | |||
|
|||
|
|||
class TestLogFilteringFunctions(testutils.WebHostTestCase): | |||
"""This class is for testing the logger behavior in Python Worker when | |||
dealing with customer's log and system's log. Here's a list of expected | |||
behaviors: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit; you don't need to mention this - if you have mentioned this earlier. Just give a reference of is_system_log_category
and that should be good enough.
@@ -50,6 +58,7 @@ def check_log_debug_logging(self, host_out: typing.List[str]): | |||
self.assertIn('logging info', host_out) | |||
self.assertIn('logging warning', host_out) | |||
self.assertIn('logging error', host_out) | |||
# See HOST_JSON_TEMPLATE_WITH_LOGLEVEL_INFO, debug log is disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry - didnt understand this - where is this pointing to?
Here's a list of expected behaviors: | ||
local_console customer_app_insight functions_kusto_table | ||
system_log false false true | ||
customer_log true true false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
Description
Dependency Azure/azure-functions-python-library#88
Fixes ##840
From now on, we will treat 'azure.functions' namespace and its child namespace as system logs.
After merging this PR, we should be able to see the following log lines in our Kusto table:
This will help the PM team calculate the usage on WSGI/ASGI middlewares.
Core changes in
azure_functions_worker/logging.py
.cc: @stefanushinardi @vrdmr @AnatoliB
PR information
Quality of Code and Contribution Guidelines