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