11 writes to MaxAttributeCount
Aspire.Dashboard.Tests (11)
Shared\SqliteRepositoryTestHelpers.cs (1)
31
telemetryLimits.
MaxAttributeCount
= maxAttributeCount ?? telemetryLimits.MaxAttributeCount;
TelemetryRepositoryTests\OtlpHelpersTests.cs (9)
172
TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 3 }),
202
TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 3 }),
246
TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 3 }),
285
TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 3 }),
321
TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 3 }),
364
TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 3 }),
400
var results = attributes.ToKeyValuePairs(TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 2 }));
435
var context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 2 }, logger: factory.CreateLogger<OtlpHelpersTests>());
480
var context = TelemetryTestHelpers.CreateContext(options: new TelemetryLimitOptions {
MaxAttributeCount
= 3 }, logger: factory.CreateLogger<OtlpHelpersTests>());
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
30
telemetryLimits.
MaxAttributeCount
= maxAttributeCount ?? telemetryLimits.MaxAttributeCount;
6 references to MaxAttributeCount
Aspire.Dashboard (4)
Otlp\Model\OtlpHelpers.cs (4)
229
var values = new KeyValuePair<string, string>[Math.Min(attributes.Count, context.Options.
MaxAttributeCount
)];
249
var readLimit = Math.Min(attributes.Count, context.Options.
MaxAttributeCount
);
301
copyCount = Math.Min(parentAttributes.Length + attributes.Count, context.Options.
MaxAttributeCount
);
329
var desiredCopyCount = Math.Min(attributes.Count + index, context.Options.
MaxAttributeCount
);
Aspire.Dashboard.Tests (2)
Shared\SqliteRepositoryTestHelpers.cs (1)
31
telemetryLimits.MaxAttributeCount = maxAttributeCount ?? telemetryLimits.
MaxAttributeCount
;
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
30
telemetryLimits.MaxAttributeCount = maxAttributeCount ?? telemetryLimits.
MaxAttributeCount
;