azure-functions-sql-extension icon indicating copy to clipboard operation
azure-functions-sql-extension copied to clipboard

Investigate Monitoring viewer in Azure Portal

Open VasuBhog opened this issue 2 years ago • 11 comments

Certain logs/errors were not showing up in the Azure Portal "live" Monitoring viewer in the portal.

Investigate and Document how we can improve the experience.

Follow-up task from https://github.com/Azure/azure-functions-sql-extension/issues/816.

VasuBhog avatar Apr 22 '23 01:04 VasuBhog

Filed an issue in the host repo: https://github.com/Azure/azure-functions-host/issues/9239.

lucyzhang929 avatar Apr 27 '23 17:04 lucyzhang929

If we can't get this figured out we should at least document what other methods they can use to see the logs.

Charles-Gagnon avatar Jun 13 '23 18:06 Charles-Gagnon

I think it would be great to have more insight into the configuration of these functions. If it is connecting to the db correctly, if change tracking is not turned on, etc.

jmarbutt avatar Jun 16 '23 01:06 jmarbutt

The logs should have any errors that occur - this includes change tracking not being enabled or any connection errors that occur. Are you not seeing these show up? The issue here is that they aren't showing up in the Monitoring tab for some reason (which isn't something we can really control unfortunately) - but you should still be able to see them in the log stream and/or App Insights

Charles-Gagnon avatar Jun 16 '23 15:06 Charles-Gagnon

@Charles-Gagnon which logs? I keep going to the monitoring tab so that may also be part of the issue.

jmarbutt avatar Jun 16 '23 17:06 jmarbutt

I am not seeing any connection issues, just no events firing

jmarbutt avatar Jun 16 '23 18:06 jmarbutt

@jmarbutt If you go to your function app and click on Log Stream under Monitoring, are you able to see any logs? Screenshot 2023-06-16 at 11 08 20 AM

lucyzhang929 avatar Jun 16 '23 18:06 lucyzhang929

Log streaming : https://learn.microsoft.com/en-us/azure/azure-functions/streaming-logs

Application Insights : https://learn.microsoft.com/en-us/azure/azure-functions/analyze-telemetry-data#view-telemetry-in-application-insights

Charles-Gagnon avatar Jun 16 '23 18:06 Charles-Gagnon

I am able to see the logs but I am not seeing anything related to that function or anything that seems like an error.

jmarbutt avatar Jun 16 '23 18:06 jmarbutt

Could you open a separate issue (so we aren't cluttering up this one, which is a separate problem) and we can help try to track down why you aren't seeing anything?

When you do, if you could include the logs you do see and what version of the extension you're using that'd be great.

Charles-Gagnon avatar Jun 16 '23 18:06 Charles-Gagnon

Added note in docs about logging: https://github.com/Azure/azure-functions-sql-extension/pull/927#pullrequestreview-1640249690.

Moving this out of GA Milestone while I continue to follow up with the Functions team.

lucyzhang929 avatar Sep 22 '23 16:09 lucyzhang929