31 writes to Logger
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
71Logger = loggerFactory.CreateLogger<SqliteTelemetryRepository>(),
Aspire.Dashboard.Components.Tests (7)
Controls\GenAIVisualizerDialogTests.cs (3)
38var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 80var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 145var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Controls\PlotlyChartTests.cs (1)
63var context = new OtlpContext { Options = options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (1)
27var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Pages\TraceDetailsTests.cs (1)
512var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
263Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Tests (23)
ChartDataCalculatorTests.cs (1)
21new() { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance };
Model\SpanWaterfallViewModelTests.cs (4)
20var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 46var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 79var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 105var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\TelemetryExportServiceTests.cs (1)
424new OtlpContext { Logger = NullLogger.Instance, Options = new() }));
Model\TraceDetailPageViewModelTests.cs (4)
36var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 69var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 103var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 144var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (7)
18var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 39var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 66var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 93var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 127var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 158var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 179var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
TelemetryRepositoryTests\OtlpSpanTests.cs (5)
20var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 71var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 89var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 109var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 173var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
263Logger = logger ?? NullLogger.Instance
20 references to Logger
Aspire.Dashboard (20)
Otlp\Model\OtlpHelpers.cs (4)
271context.Logger.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key); 348context.Logger.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key); 537context.Logger.LogTrace("Added scope '{ScopeName}' to {TelemetryType}.", s.Name, telemetryType); 542context.Logger.LogInformation(ex, "Error adding scope to {TelemetryType}.", telemetryType);
Otlp\Storage\SqliteTelemetryRepository.cs (3)
93_otlpContext.Logger.LogTrace("{Count} incoming structured log resource(s) ignored because of an active pause.", resourceLogs.Count); 116_otlpContext.Logger.LogTrace("{Count} incoming metric resource(s) ignored because of an active pause.", resourceMetrics.Count); 133_otlpContext.Logger.LogTrace("{Count} incoming trace resource(s) ignored because of an active pause.", resourceSpans.Count);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (3)
50_otlpContext.Logger.LogInformation(exception, "Error adding resource."); 68_otlpContext.Logger.LogInformation(exception, "Error adding log scope."); 88_otlpContext.Logger.LogInformation(exception, "Error adding log entry.");
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (6)
53_otlpContext.Logger.LogInformation(exception, "Error adding resource."); 67_otlpContext.Logger.LogInformation(exception, "Error adding metric scope."); 123_otlpContext.Logger.LogInformation("Error adding {MetricType} metrics. {MetricType} is not supported.", metric.DataCase, metric.DataCase); 139_otlpContext.Logger.LogInformation(exception, "Error adding metric instrument {MetricName}.", metric.Name); 238_otlpContext.Logger.LogInformation(exception, "Error adding metric."); 314_otlpContext.Logger.LogInformation(exception, "Error adding metric.");
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (1)
151}, ExecutionContext.Capture(), _otlpContext.Logger, _subscriptionMinExecuteInterval);
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (3)
68_otlpContext.Logger.LogInformation(exception, "Error adding resource."); 86_otlpContext.Logger.LogInformation(exception, "Error adding trace scope."); 111_otlpContext.Logger.LogInformation(exception, "Error adding span.");