50 instantiations of TelemetryLimitOptions
Aspire.Dashboard (1)
Configuration\DashboardOptions.cs (1)
22public TelemetryLimitOptions TelemetryLimits { get; set; } = new();
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 }; 120var options = new TelemetryLimitOptions();
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)
512var context = new OtlpContext { Logger = NullLogger.Instance, Options = new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
283Options = options ?? new TelemetryLimitOptions(),
Aspire.Dashboard.Tests (39)
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 (2)
424new OtlpContext { Logger = NullLogger.Instance, Options = new() })); 1352TelemetryLimits = new TelemetryLimitOptions { MaxLogCount = 40_000 }
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() };
Shared\SqliteRepositoryTestHelpers.cs (1)
29var telemetryLimits = new TelemetryLimitOptions();
TelemetryRepositoryTests\HistogramTests.cs (2)
588var options = Options.Create(new DashboardOptions { TelemetryLimits = new TelemetryLimitOptions { MaxMetricsCount = 120 } }); 636var options = Options.Create(new DashboardOptions { TelemetryLimits = new TelemetryLimitOptions { MaxMetricsCount = 3 } });
TelemetryRepositoryTests\OtlpHelpersTests.cs (9)
172TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }), 202TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }), 246TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }), 285TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }), 321TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }), 364TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }), 400var results = attributes.ToKeyValuePairs(TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 2 })); 435var context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 2 }, logger: factory.CreateLogger<OtlpHelpersTests>()); 480var context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions { MaxAttributeCount = 3 }, logger: factory.CreateLogger<OtlpHelpersTests>());
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() };
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
458TelemetryLimits = new TelemetryLimitOptions { MaxMetricsCount = 3 }
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
28var telemetryLimits = new global::Aspire.Dashboard.Configuration.TelemetryLimitOptions();
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
283Options = options ?? new TelemetryLimitOptions(),
7 references to TelemetryLimitOptions
Aspire.Dashboard (2)
Configuration\DashboardOptions.cs (1)
22public TelemetryLimitOptions TelemetryLimits { get; set; } = new();
Otlp\Model\OtlpContext.cs (1)
11public required TelemetryLimitOptions Options { get; init; }
Aspire.Dashboard.Components.Tests (2)
Controls\PlotlyChartTests.cs (1)
120var options = new TelemetryLimitOptions();
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
279public static OtlpContext CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)
Aspire.Dashboard.Tests (3)
Shared\SqliteRepositoryTestHelpers.cs (1)
29var telemetryLimits = new TelemetryLimitOptions();
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
28var telemetryLimits = new global::Aspire.Dashboard.Configuration.TelemetryLimitOptions();
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
279public static OtlpContext CreateContext(TelemetryLimitOptions? options = null, ILogger? logger = null)