3 instantiations of OtlpInstrument
Aspire.Dashboard (2)
Otlp\Model\OtlpApplication.cs (1)
76instrumentRef ??= new OtlpInstrument
Otlp\Model\OtlpInstrument.cs (1)
110var newInstrument = new OtlpInstrument
Aspire.Dashboard.Components.Tests (1)
Controls\PlotlyChartTests.cs (1)
57var instrument = new OtlpInstrument
15 references to OtlpInstrument
Aspire.Dashboard (13)
Otlp\Model\OtlpApplication.cs (7)
34private readonly Dictionary<OtlpInstrumentKey, OtlpInstrument> _instruments = new(); 64OtlpInstrument instrument; 74ref var instrumentRef = ref CollectionsMarshal.GetValueRefOrAddDefault(_instruments, instrumentKey, out _); 122private void AddMetrics(OtlpInstrument instrument, Metric metric, AddContext context, ref KeyValuePair<string, string>[]? tempAttributes) 204public OtlpInstrument? GetInstrument(string meterName, string instrumentName, DateTime? valuesStart, DateTime? valuesEnd) 210if (!_instruments.TryGetValue(new OtlpInstrumentKey(meterName, instrumentName), out var instrument)) 215return OtlpInstrument.Clone(instrument, cloneData: true, valuesStart: valuesStart, valuesEnd: valuesEnd);
Otlp\Model\OtlpInstrument.cs (3)
108public static OtlpInstrument Clone(OtlpInstrument instrument, bool cloneData, DateTime? valuesStart, DateTime? valuesEnd) 110var newInstrument = new OtlpInstrument
Otlp\Storage\TelemetryRepository.cs (3)
1249.OfType<OtlpInstrument>() 1258var instrument = instruments[0]; 1273foreach (var instrument in instruments)
Aspire.Dashboard.Components.Tests (1)
Controls\PlotlyChartTests.cs (1)
57var instrument = new OtlpInstrument
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\MetricsTests.cs (1)
400var instrument = applications.Single().GetInstrument("test-meter", "test", s_testTime.AddMinutes(1), s_testTime.AddMinutes(1.5));