31 writes to Options
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
72
Options
= dashboardOptions.Value.TelemetryLimits
Aspire.Dashboard.Components.Tests (7)
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 (1)
63
var context = new OtlpContext {
Options
= options, Logger = logger };
Controls\StructuredLogDetailsTests.cs (1)
27
var context = new OtlpContext { Logger = NullLogger.Instance,
Options
= new() };
Pages\TraceDetailsTests.cs (1)
512
var context = new OtlpContext { Logger = NullLogger.Instance,
Options
= new() };
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
262
Options
= options ?? new TelemetryLimitOptions(),
Aspire.Dashboard.Tests (23)
ChartDataCalculatorTests.cs (1)
21
new() {
Options
= new TelemetryLimitOptions(), Logger = NullLogger.Instance };
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)
262
Options
= options ?? new TelemetryLimitOptions(),
19 references to Options
Aspire.Dashboard (19)
Otlp\Model\OtlpHelpers.cs (6)
229
var values = new KeyValuePair<string, string>[Math.Min(attributes.Count, context.
Options
.MaxAttributeCount)];
249
var readLimit = Math.Min(attributes.Count, context.
Options
.MaxAttributeCount);
262
var value = TruncateString(attribute.Value.GetString(), context.
Options
.MaxAttributeLength);
301
copyCount = Math.Min(parentAttributes.Length + attributes.Count, context.
Options
.MaxAttributeCount);
329
var desiredCopyCount = Math.Min(attributes.Count + index, context.
Options
.MaxAttributeCount);
339
var value = TruncateString(attribute.Value.GetString(), context.
Options
.MaxAttributeLength);
Otlp\Model\OtlpLogEntryData.cs (1)
47
? OtlpHelpers.TruncateString(body.GetString(), context.
Options
.MaxAttributeLength)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (2)
80
if (resourceCount >= _otlpContext.
Options
.MaxResourceCount)
82
throw new InvalidOperationException($"Resource limit of {_otlpContext.
Options
.MaxResourceCount} reached. Resource '{resourceKey}' will not be added.");
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (3)
193
""", new { _otlpContext.
Options
.MaxLogCount }, transaction);
272
IsFull = totalCount >= _otlpContext.
Options
.MaxLogCount
284
query.Parameters.Add("MaxLogCount", _otlpContext.
Options
.MaxLogCount);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
313
_otlpContext.
Options
.MaxMetricsCount,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (1)
751
""", new { DimensionIds = batch.Select(dimension => dimension.DimensionId).ToArray(), _otlpContext.
Options
.MaxMetricsCount }, transaction);
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (3)
51
IsFull = connection.QuerySingle<int>("SELECT COUNT(*) FROM telemetry_traces;") >= _otlpContext.
Options
.MaxTraceCount
65
query.Parameters.Add("MaxTraceCount", _otlpContext.
Options
.MaxTraceCount);
411
IsFull = connection.QuerySingle<int>("SELECT COUNT(*) FROM telemetry_traces;") >= _otlpContext.
Options
.MaxTraceCount
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (2)
943
foreach (var spanEvent in span.Events.OrderBy(spanEvent => spanEvent.TimeUnixNano).Take(_otlpContext.
Options
.MaxSpanEventCount))
990
""", new { _otlpContext.
Options
.MaxTraceCount }, transaction);