Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
335 stars 103 forks source link

Enable dependency logging filtering v2 #1167

Open YunchuWang opened 1 year ago

YunchuWang commented 1 year ago

Introducing a new flag named PYTHON_ENABLE_DEPENDENCY_LOG_FILTERING_MODULES which customers can use to specify list of function app modules(like function_app, or blueprint modules) to receive logs from. The feature is only supported in python new programming model. Logs for any modules(like third party libraries) not listed in the setting will not be logged and captured. If this setting is not configured, all user function app/modules logs will be captured.

Description

Fixes #743


PR information

Quality of Code and Contribution Guidelines

codecov[bot] commented 1 year ago

Codecov Report

Merging #1167 (1b8d87f) into dev (1c577b0) will decrease coverage by 0.67%. The diff coverage is 45.45%.

@@            Coverage Diff             @@
##              dev    #1167      +/-   ##
==========================================
- Coverage   83.87%   83.20%   -0.67%     
==========================================
  Files          34       34              
  Lines        1885     1882       -3     
  Branches      362      277      -85     
==========================================
- Hits         1581     1566      -15     
- Misses        233      243      +10     
- Partials       71       73       +2     
Flag Coverage Δ
unittests 83.20% <45.45%> (-0.62%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
azure_functions_worker/logging.py 41.37% <20.00%> (-5.80%) :arrow_down:
azure_functions_worker/dispatcher.py 87.33% <60.00%> (-1.53%) :arrow_down:
azure_functions_worker/constants.py 100.00% <100.00%> (ø)
azure_functions_worker/extension.py 99.06% <0.00%> (-0.02%) :arrow_down:
...ed_memory_data_transfer/shared_memory_constants.py 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.