6 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 (3)
TelemetryRepositoryTests\TelemetryLimitTests.cs (3)
128for (var i = 0; i < TelemetryRepositoryLimits.MaxInstrumentCount; i++) 158Assert.Equal(TelemetryRepositoryLimits.MaxInstrumentCount, instruments.Count); 182Assert.Equal(TelemetryRepositoryLimits.MaxInstrumentCount, instruments.Count);