36 writes to Logger
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
96
Logger
= loggerFactory.CreateLogger<SqliteTelemetryRepository>(),
Aspire.Dashboard.Components.Tests (10)
Controls\GenAIVisualizerDialogTests.cs (3)
38
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
80
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
145
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
Controls\PlotlyChartTests.cs (2)
32
var context = new OtlpContext { Options = new TelemetryLimitOptions(),
Logger
= NullLogger.Instance };
122
var context = new OtlpContext { Options = options,
Logger
= logger };
Controls\StructuredLogDetailsTests.cs (2)
46
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
79
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
Controls\TextVisualizerDialogTests.cs (1)
539
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
Pages\TraceDetailsTests.cs (1)
592
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284
Logger
= logger ?? NullLogger.Instance
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284
Logger
= logger ?? NullLogger.Instance
Aspire.Dashboard.Tests (24)
ChartDataCalculatorTests.cs (1)
22
new() { Options = new TelemetryLimitOptions(),
Logger
= NullLogger.Instance };
Model\SpanDetailsViewModelTests.cs (1)
23
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
Model\SpanWaterfallViewModelTests.cs (4)
20
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
46
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
79
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
105
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
Model\TelemetryExportServiceTests.cs (1)
424
new OtlpContext {
Logger
= NullLogger.Instance, Options = new() }));
Model\TraceDetailPageViewModelTests.cs (4)
36
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
69
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
103
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
144
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (7)
18
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
39
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
66
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
93
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
127
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
158
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
179
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
TelemetryRepositoryTests\OtlpSpanTests.cs (5)
20
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
71
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
89
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
109
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
173
var context = new OtlpContext {
Logger
= NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
284
Logger
= logger ?? NullLogger.Instance
22 references to Logger
Aspire.Dashboard (22)
Otlp\Model\OtlpHelpers.cs (5)
103
context.
Logger
.LogWarning("Ignoring metric exemplar with timestamp {TimeUnixNano} above the signed Unix nanosecond limit.", exemplar.TimeUnixNano);
298
context.
Logger
.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key);
375
context.
Logger
.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key);
564
context.
Logger
.LogTrace("Added scope '{ScopeName}' to {TelemetryType}.", s.Name, telemetryType);
569
context.
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.");