An Azure Function app needs to track custom business metrics (e.g., orders processed). Which Application Insights API should be used?
- A TrackRequest()
- B TrackEvent() and/or TrackMetric() (correct answer)
- C TrackException()
- D TrackDependency()
Shortcut: , 'OrderProcessed') with custom properties. , processing_time_ms). Both appear in the customEvents / customMetrics tables.
TrackEvent() logs named custom events (e.g., 'OrderProcessed') with custom properties. TrackMetric() logs custom numeric measurements (e.g., processing_time_ms). Both appear in the customEvents / customMetrics tables.