-
Notifications
You must be signed in to change notification settings - Fork 457
Logging improvements to DiagnosticEventTableStorageRepository #10996
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
TODO: |
…sitory. Disabling service when the client is not authorized to use the table storage service.
f993129
to
5891f6c
Compare
test/WebJobs.Script.Tests.Integration/Diagnostics/DiagnosticEventTableStorageRepositoryTests.cs
Outdated
Show resolved
Hide resolved
src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.cs
Outdated
Show resolved
Hide resolved
src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.cs
Show resolved
Hide resolved
src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.cs
Outdated
Show resolved
Hide resolved
src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.cs
Show resolved
Hide resolved
Do we have any publicly available documentation for this feature? If not, it would be helpful to create documentation outlining its behavior and the requirements needed to enable it. |
Check first for initialized _tableClient.
src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.cs
Show resolved
Hide resolved
src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.cs
Show resolved
Hide resolved
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.
LGTM. One minor concern is if the issues leading to the service failing are resolved, instances need to be restarted to re-enable this service. I can live with that for now, but something for us to be aware of.
src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.Log.cs
Show resolved
Hide resolved
I have the same concern but I'm ok for now as well. We could have a timer that runs the checks every 30 minutes for example (without logging errors of course) and re-enables the service if the issues are resolved. |
That seems reasonable for a future improvement. I would want to make sure we don't log this as an error though, maybe a warning. |
* Update version to 4.1039.500 * Clear release notes * Logging improvements to DiagnosticEventTableStorageRepository (#10996) --------- Co-authored-by: Azure Functions Release <[email protected]> Co-authored-by: Carlos J. Aliaga <[email protected]>
it need to perminssion for table storage account Azure/azure-functions-host#10996
Issue describing the changes in this PR
This PR introduces improvements to the logging and error handling mechanisms within the
DiagnosticEventTableStorageRepository
class. The main changes include the addition of a dedicatedLogger
class for structured logging and enhancements to error handling to disable the service when it's not able to connect to the table storage service.Resolves #10757 #10995
Pull request checklist
IMPORTANT: Currently, changes must be backported to the
in-proc
branch to be included in Core Tools and non-Flex deployments.in-proc
branch is not requiredrelease_notes.md