36 writes to Logger
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
96Logger = loggerFactory.CreateLogger<SqliteTelemetryRepository>(),
Aspire.Dashboard.Components.Tests (10)
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 (2)
32var context = new OtlpContext { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance }; 122var context = new OtlpContext { Options = options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (2)
46var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 79var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Controls\TextVisualizerDialogTests.cs (1)
539var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Pages\TraceDetailsTests.cs (1)
592var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Tests (24)
ChartDataCalculatorTests.cs (1)
22new() { Options = new TelemetryLimitOptions(), Logger = NullLogger.Instance };
Model\SpanDetailsViewModelTests.cs (1)
23var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
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)
284Logger = logger ?? NullLogger.Instance
22 references to Logger
Aspire.Dashboard (22)
Otlp\Model\OtlpHelpers.cs (5)
103context.Logger.LogWarning("Ignoring metric exemplar with timestamp {TimeUnixNano} above the signed Unix nanosecond limit.", exemplar.TimeUnixNano); 298context.Logger.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key); 375context.Logger.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key); 564context.Logger.LogTrace("Added scope '{ScopeName}' to {TelemetryType}.", s.Name, telemetryType); 569context.Logger.LogInformation(ex, "Error adding scope to {TelemetryType}.", telemetryType);
Otlp\Storage\SqliteTelemetryRepository.cs (3)
118_otlpContext.Logger.LogTrace("{Count} incoming structured log resource(s) ignored because of an active pause.", resourceLogs.Count); 146_otlpContext.Logger.LogTrace("{Count} incoming metric resource(s) ignored because of an active pause.", resourceMetrics.Count); 164_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 (7)
55_otlpContext.Logger.LogInformation(exception, "Error adding resource."); 69_otlpContext.Logger.LogInformation(exception, "Error adding metric scope."); 80_otlpContext.Logger.LogInformation( 142_otlpContext.Logger.LogInformation("Error adding {MetricType} metrics. {MetricType} is not supported.", metric.DataCase, metric.DataCase); 163_otlpContext.Logger.LogInformation(exception, "Error adding metric instrument {MetricName}.", metric.Name); 263_otlpContext.Logger.LogInformation(exception, "Error adding metric."); 333_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.");