question

BaharulIslam-2413 avatar image
0 Votes"
BaharulIslam-2413 asked MughundhanRaveendran-MSFT commented

How to trace end to end transaction in logic app to Azure function.

Hi Experts,

We have few Azure Integration services deployed using Logic App, Function & API management. One transaction have below flow

Logic App--> API-M--> Function --> (External Partner)

We are facing intermittent error in function to call external partner API. Now question is how can extract end to end transaction from Logic APP to Function using some ? Is there can be report /logic to extract all transaction that entered in logic APP to get corresponding transaction in function ?

azure-functionsazure-logic-appsazure-api-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MughundhanRaveendran-MSFT avatar image
0 Votes"
MughundhanRaveendran-MSFT answered MughundhanRaveendran-MSFT commented

@BaharulIslam-2413 ,

Thanks for reaching out to the Q&A forum.

I would suggest you enable application insights at Logic app and function app (same app insights resource for both the apps) and look at the Transaction search blade in the Application insights resource. You will be able to see end-end transaction results. This will be helpful for you, however, you won't be able to correlate the exact logic app run and function invocation. You will have to rely on the timeframe of the requests.


178450-transaction.png

Timeframe:

178430-image.png

I hope this helps!

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.



transaction.png (213.8 KiB)
image.png (105.9 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you @MughundhanRaveendran-MSFT for feedback. This one I am able to get but what we are looking for to extract failed transaction report.
Recently can observe function-app is failing to call 3rd part API and also some logic app is failing to send response back due to timeout. Also when function-app is failing , its doing some retries before making logic-app as failure.

Need to extract some sort of report to show where it failed (function-app or logic app), what was failure message to draw some pattern .

0 Votes 0 ·

@BaharulIslam-2413 , You can log some custom messages using app insights iLogger : https://docs.microsoft.com/en-us/azure/azure-monitor/app/ilogger. This might be helpful

0 Votes 0 ·
BaharulIslam-2413 avatar image BaharulIslam-2413 MughundhanRaveendran-MSFT ·

Thank you @MughundhanRaveendran-MSFT for your comments.

Another query related on same end to end transaction monitoring. When either logic-app or function-app is receiving and transaction from external client , how can search with specific ID in logs ? For example Key values we are receiving as OrderID, TransactionID, region etc. Is there a way to log this ID or combination of multiple input and later on can retrieve all transaction related with this IDs and can get entire details about process / exact request body / response body?

0 Votes 0 ·
Show more comments