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