KURAMOTOAHUJATAIRA-3118, thank you for posting this question on Microsoft Q&A.
The recommended way to monitor execution of Azure Functions is using ApplicationInsigts. You can enable it for your AzureFunction using the instruction here - Enable Application Insights integration.
Once it is enabled, the target ApplicationInsights logs has 2 tables which can be used for monitoring execution errors:
traces
and exceptions
In traces
table, the error events are logged with severityLevel=3, which can be used to filter the logs and review if there any errors, this can also be used to set up alerting:
traces
| where severityLevel == 3
Similarly, the exceptions
table can also be used in isolated fashion or by joining on the operation_Id
column to get details result.
More detailed guidelines and suggestions for advanced monitoring is also available here - Monitor Azure Functions and Event Hubs
Hope this helps.
If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.