2 instantiations of OtlpInstrument
Aspire.Dashboard (2)
Otlp\Model\OtlpApplication.cs (1)
65instrumentRef ??= new OtlpInstrument
Otlp\Model\OtlpInstrument.cs (1)
101var newInstrument = new OtlpInstrument
11 references to OtlpInstrument
Aspire.Dashboard (11)
Otlp\Model\OtlpApplication.cs (7)
30private readonly Dictionary<OtlpInstrumentKey, OtlpInstrument> _instruments = new(); 53OtlpInstrument instrument; 63ref var instrumentRef = ref CollectionsMarshal.GetValueRefOrAddDefault(_instruments, instrumentKey, out _); 111private void AddMetrics(OtlpInstrument instrument, Metric metric, AddContext context, ref KeyValuePair<string, string>[]? tempAttributes) 202public OtlpInstrument? GetInstrument(string meterName, string instrumentName, DateTime? valuesStart, DateTime? valuesEnd) 208if (!_instruments.TryGetValue(new OtlpInstrumentKey(meterName, instrumentName), out var instrument)) 213return OtlpInstrument.Clone(instrument, cloneData: true, valuesStart: valuesStart, valuesEnd: valuesEnd);
Otlp\Model\OtlpInstrument.cs (3)
99public static OtlpInstrument Clone(OtlpInstrument instrument, bool cloneData, DateTime? valuesStart, DateTime? valuesEnd) 101var newInstrument = new OtlpInstrument
Otlp\Storage\TelemetryRepository.cs (1)
1163.OfType<OtlpInstrument>()