2 instantiations of OtlpInstrument
Aspire.Dashboard (2)
Otlp\Model\OtlpApplication.cs (1)
58
instrument ??= new
OtlpInstrument
Otlp\Model\OtlpInstrument.cs (1)
127
var newInstrument = new
OtlpInstrument
9 references to OtlpInstrument
Aspire.Dashboard (9)
Otlp\Model\OtlpApplication.cs (5)
30
private readonly Dictionary<OtlpInstrumentKey,
OtlpInstrument
> _instruments = new();
56
ref
var
instrument = ref CollectionsMarshal.GetValueRefOrAddDefault(_instruments, instrumentKey, out _);
107
public
OtlpInstrument
? GetInstrument(string meterName, string instrumentName, DateTime? valuesStart, DateTime? valuesEnd)
113
if (!_instruments.TryGetValue(new OtlpInstrumentKey(meterName, instrumentName), out
var
instrument))
118
return
OtlpInstrument
.Clone(instrument, cloneData: true, valuesStart: valuesStart, valuesEnd: valuesEnd);
Otlp\Model\OtlpInstrument.cs (3)
125
public static
OtlpInstrument
Clone(
OtlpInstrument
instrument, bool cloneData, DateTime? valuesStart, DateTime? valuesEnd)
127
var
newInstrument = new OtlpInstrument
Otlp\Storage\TelemetryRepository.cs (1)
1062
.OfType<
OtlpInstrument
>()