Can't figure out monitoring and "trackedProperties" setting

765 views Asked by At

Trying to follow along here: https://learn.microsoft.com/en-us/azure/app-service-logic/app-service-logic-monitor-your-logic-apps

But that is neither a tutorial nor a reference and so is incomplete. I want to have logging which includes custom trackedProperties. Can you please outline all the required steps?

1

There are 1 answers

4
jeffhollan On BEST ANSWER

Definitely. So first you can define the custom tracked properties you want to track. Switch to code-view and add the "trackedProperties" object as defined in the article above. At runtime, all of these tracked properties will be added and emitted in the run telemetry.

After you have specified all of the properties you want to custom track, you need to read or view the diagnostics data. Currently there are a few ways to do that:

  1. On the Diagnostics settings for the workflow, you can set Diagnostics Settings to export to Azure Storage or Azure Event Hub to process later.
  2. Use Diagnostics Logs to enable diagnostics and send to Log Analytics to be searched and index by OMS.

An example of a diagnostics message can be seen in the article above - you'll notice a "trackedProperties" object in the diagnostic message for the "ActionCompleted" event which will contain any of your custom tracked properties.

Hopefully that helps. If you want more control over dealing with messages option 1 works (But requires you configure a event processor to see logs) -- the Log Analytics provides more. Info on log analytics can be found here