using App.Metrics.Reporting.ApplicationInsights; var instrumentationKey = "00000000-0000-0000-0000-000000000000"; var metrics = new MetricsBuilder() .Configuration.Configure(metricsOptions) .Report.ToApplicationInsights(instrumentationKey) .Build();
There are few caveats that come along by marriage of two frameworks which both do metric pre-aggragetion before sending it upstream using a reporter.
Also the interface for sending metric aggregates on Application Insight’s
TelemetryClient is lacking some features which are otherwise available (metric dimensions).
Read here about such issues and their solutions.