We are building integrations in Azure using a combination of Logic Apps, APIs and Azure Functions. We have requirements for end-to-end tracking of transactions from source to destination, i.e distributed tracing. We need to be able to track on custom fields, such as orderId. Any advice on how to best achieve this, pointer to articles, samples, videos are highly appreciated.
Implementing distributed tracing in Azure
436 Views Asked by Ershad Nozari At
2
There are 2 best solutions below
0

I think you can consider using Application Insights.
It has both code-less and code-based mode, and can automatically track the request / dependency etc. You can also track any custom fields by using it's built-in method.
And azure function is easy to integrated with application insights, see here for more details.
For web api, you can easily use the built-in method or using code-based or code-less to monitor it.
I have done a bit more research into this. I believe using Azure Monitor is the way to go as described here: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/logic-apps/monitor-logic-apps-log-analytics.md. What's outlined here is really good as it explains the steps required to setup Azure Monitor. Azure Monitor in combination to what's described in the following article around end-to-end correlation with custom properties should give me what I need: https://yourazurecoach.com/2018/08/05/end-to-end-correlation-across-logic-apps/