I am using the logging extension framework in an asp.net core function app. I have following code:
log.LogMetric("TESTER", 0);
log.LogInformation($"{{logTypeStart}}: {service.GetType()}", logTypeStart);
await service.Run(log);
log.LogInformation($"{{logTypeEnd}}: {service.GetType()}", logTypeEnd);
In log analytics I query following:
AppTraces
AppMetrics
The LogInformation logs traces to the AppTraces in Log Analytics. But AppMetrics does not provide any results. Any pointers on how to troubleshoot this?