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