16 writes to Logger
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
71Logger = _logger,
Aspire.Dashboard.Components.Tests (3)
Controls\PlotlyChartTests.cs (1)
56var context = new OtlpContext { Options = options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (1)
25var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
300Logger = logger ?? NullLogger.Instance
Aspire.Dashboard.Tests (12)
Model\SpanWaterfallViewModelTests.cs (5)
19var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 49var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 84var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 124var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() }; 146var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
Model\TraceHelpersTests.cs (5)
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() };
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
20var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
300Logger = logger ?? NullLogger.Instance
17 references to Logger
Aspire.Dashboard (17)
Otlp\Model\OtlpApplication.cs (7)
91Context.Logger.LogTrace("Added metric instrument '{InstrumentName}' for scope '{ScopeName}'.", instrumentRef.Summary.Name, scope.Name); 100Context.Logger.LogInformation(ex, "Error adding metric instrument {MetricName}.", metric.Name); 142Context.Logger.LogInformation(ex, "Error adding metric."); 157Context.Logger.LogInformation(ex, "Error adding metric."); 172Context.Logger.LogInformation(ex, "Error adding metric."); 178Context.Logger.LogInformation("Error adding summary metrics. Summary is not supported."); 182Context.Logger.LogInformation("Error adding exponential histogram metrics. Exponential histogram is not supported.");
Otlp\Model\OtlpHelpers.cs (4)
232context.Logger.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key); 309context.Logger.LogDebug("Duplicate attribute {Name} with different value. Last value wins.", attribute.Key); 464context.Logger.LogTrace("Added scope '{ScopeName}' to {TelemetryType}.", scopeRef.Name, telemetryType); 472context.Logger.LogInformation(ex, "Error adding scope to {TelemetryType}.", telemetryType);
Otlp\Storage\Subscription.cs (1)
28_callbackThrottler = new CallbackThrottler(name, telemetryRepository._otlpContext.Logger, telemetryRepository._subscriptionMinExecuteInterval, callback, executionContext);
Otlp\Storage\TelemetryRepository.cs (5)
321_otlpContext.Logger.LogInformation(ex, "Error adding application."); 390_otlpContext.Logger.LogInformation(ex, "Error adding log entry."); 848_otlpContext.Logger.LogInformation(ex, "Error adding application."); 876_otlpContext.Logger.LogInformation(ex, "Error adding application."); 1037_otlpContext.Logger.LogInformation(ex, "Error adding span.");