2 instantiations of InMemoryInstrument
Aspire.Dashboard.Tests (2)
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (2)
1954instrument = new InMemoryInstrument 2734var newInstrument = new InMemoryInstrument
13 references to InMemoryInstrument
Aspire.Dashboard.Tests (13)
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (13)
1938InMemoryInstrument instrument; 1948if (resourceEntry.Instruments.TryGetValue(instrumentKey, out var existingInstrument)) 1995private void AddMetrics(InMemoryInstrument instrument, Metric metric, AddContext context) 2508if (resource.Instruments.TryGetValue(instrumentKey, out var instrument)) 2535.OfType<InMemoryInstrument>() 2546foreach (var instrument in instruments) 2569private static InMemoryInstrument? CloneInstrument(ResourceEntry resource, OtlpInstrumentKey key, DateTime? valuesStart, DateTime? valuesEnd) 2574return resource.Instruments.TryGetValue(key, out var instrument) 2575? InMemoryInstrument.Clone(instrument, valuesStart, valuesEnd) 2732public static InMemoryInstrument Clone(InMemoryInstrument instrument, DateTime? valuesStart, DateTime? valuesEnd) 2734var newInstrument = new InMemoryInstrument 2787public Dictionary<OtlpInstrumentKey, InMemoryInstrument> Instruments { get; } = [];