Monitoring Azure Functions
  • 08 Jun 2021
  • 1 دقيقة للقراءة
  • المساهمون
  • داكن
    ضوء
  • PDF

Monitoring Azure Functions

  • داكن
    ضوء
  • PDF

The content is currently unavailable in Arabic. You are viewing the default English version.
ملخص المقال

Watch Azure Function failures

Are you finding it difficult to know when your Azure Function fails?

This use case is a simplified version of a production scenario, where there is an Azure Function that plays a critical role in the business orchestration. The problem is that the product team is not aware of the failure in the Azure function.

Every Function App would have one or more functions defined. The function could fail due to any of the following reasons,

  1. Binding Errors: Azure functions triggers and bindings communicate with various Azure service, which might raise errors
  2. Logical Errors: Computation logic implemented in the Azure function might have unhandled exceptions

This would break the workflow and the team should be notified on the failure with the reason to take corrective action. Consider the E-Commerce business orchestration where an Azure Function listens to a Azure Service Bus Queue for new orders.

image.png

Azure Function, “ComputeCreditPoints” is created with a Queue trigger to execute whenever a new order message is enqueued to the associated Azure Service Bus Queue. The C# function takes care of computing the customer credit points based on the bill amount.

image.png

The issue here is that few of the new order messages does not contain valid values for computing the credit points and that triggers an exception in the Azure function. The requirement is to get notified on any such failure with the reason so that corrective action can be carried out.
Watch Monitor in Serverless360 can serve as a solution, where failure notification can be sent through configured notification channels with the details of the failure, within 5 minutes (this is the default notification frequency in Serverless360) of the failure occurrence.

image.png

The function invocation action failed at 2018-08-23 17:48:39
The Watch monitor detected the failure and generated the alert at 2018-08-23 17:49:43
The alert has been forwarded to the Notification Channels at 2018-08-23 17:50:31

Similar would be the requirement to get notified on the failure of trigger or run actions in a Logic App. Getting notified on the failure of Logic Apps and Azure Functions in near real-time is now possible with Serverless360.


هل كانت هذه المقالة مفيدة؟

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.