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