Wrong Operation Name When Viewing Metrics

Andrew Hawes 181 Reputation points

When viewing the logs of an application custom metrics I see Operation Names and Custom Dimension values that do not match the metric being logged.

In the attached screenshot the Metric name is "LocusOrderUpdateFailed". This metric is tracked in only one place in the code. And the one place is only ever referenced from an Azure Functions Http Trigger called "HttpLocusWorkOrderUpdate". However, as you can see in the logs the listed Operation Name for each of the metric values is not "HttpLocusWorkOrderUpdate" and they even differ. Why is that and how can I correct it?


My best guess is that because I am using the GetMetric and TrackValue methods of the TelemetryClient and they batch metrics before sending to Azure that somehow this causes the relationship between the metric and the operation to be lost.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,014 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,642 questions
{count} votes