11 writes to MaxAttributeCount
Aspire.Dashboard.Tests (11)
Shared\SqliteRepositoryTestHelpers.cs (1)
31telemetryLimits.MaxAttributeCount = maxAttributeCount ?? telemetryLimits.MaxAttributeCount;
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\TelemetryRepositoryTestBase.cs (1)
30telemetryLimits.MaxAttributeCount = maxAttributeCount ?? telemetryLimits.MaxAttributeCount;
6 references to MaxAttributeCount
Aspire.Dashboard (4)
Otlp\Model\OtlpHelpers.cs (4)
229var values = new KeyValuePair<string, string>[Math.Min(attributes.Count, context.Options.MaxAttributeCount)]; 249var readLimit = Math.Min(attributes.Count, context.Options.MaxAttributeCount); 301copyCount = Math.Min(parentAttributes.Length + attributes.Count, context.Options.MaxAttributeCount); 329var desiredCopyCount = Math.Min(attributes.Count + index, context.Options.MaxAttributeCount);
Aspire.Dashboard.Tests (2)
Shared\SqliteRepositoryTestHelpers.cs (1)
31telemetryLimits.MaxAttributeCount = maxAttributeCount ?? telemetryLimits.MaxAttributeCount;
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
30telemetryLimits.MaxAttributeCount = maxAttributeCount ?? telemetryLimits.MaxAttributeCount;