8 references to MaxInstrumentCount
Aspire.Dashboard (3)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (3)
291if (instrumentCount >= TelemetryRepositoryLimits.MaxInstrumentCount) 293throw new InvalidOperationException($"Instrument limit of {TelemetryRepositoryLimits.MaxInstrumentCount} reached. Instrument '{metric.Name}' will not be added."); 363var availableCount = Math.Max(0, TelemetryRepositoryLimits.MaxInstrumentCount - instrumentCount);
Aspire.Dashboard.Tests (5)
TelemetryRepositoryTests\TelemetryLimitTests.cs (3)
128for (var i = 0; i < TelemetryRepositoryLimits.MaxInstrumentCount; i++) 158Assert.Equal(TelemetryRepositoryLimits.MaxInstrumentCount, instruments.Count); 182Assert.Equal(TelemetryRepositoryLimits.MaxInstrumentCount, instruments.Count);
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (2)
1952else if (resourceEntry.Instruments.Count < TelemetryRepositoryLimits.MaxInstrumentCount) 1974throw new InvalidOperationException($"Instrument limit of {TelemetryRepositoryLimits.MaxInstrumentCount} reached. Instrument '{metric.Name}' will not be added.");