Custom metric namespace not honoured RRS feed

  • Question

  • I'm creating a custom metric through Application Insights' TelemetryClient within an Azure Fnction, and trying to assign it a custom namespace. I'm using the following code:

    var telemetryClient = new TelemetryClient(); // instrumentation key is inherited from the APPINSIGHTS_INSTRUMENTATIONKEY app setting
    telemetryClient.GetMetric(new MetricIdentifier("TestNamespace", "My Test Metric Within Namespace")).TrackValue(1);
    The metric is published into Application Insights, but the namespace is shown as azure.applicationinsights and not TestNamespace.

    Wednesday, January 9, 2019 4:48 AM

All replies