skip to Main Content

UseAzureMonitor duplicates all logs

builder.Services .AddOpenTelemetry() .UseAzureMonitor() .ConfigureResource(r => r.AddService("XYZ")) .WithTracing(b => b .AddSource("X") .AddAzureMonitorTraceExporter()) .WithMetrics(b => b .AddMeter("X") .AddAzureMonitorMetricExporter()); I am trying to integrate my app with Azure Monitor by using UseAzureMonitor extension and my custom Tracing and Metrics. Separately they work as…

VIEW QUESTION
Back To Top
Search