3 instantiations of OtlpInstrumentData
Aspire.Dashboard (2)
Components\Controls\Chart\MetricInstrumentDataCache.cs (1)
74
return new
OtlpInstrumentData
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
133
return new
OtlpInstrumentData
Aspire.Dashboard.Tests (1)
ChartDataCalculatorTests.cs (1)
528
return new
OtlpInstrumentData
74 references to OtlpInstrumentData
Aspire.Dashboard (19)
Components\Controls\Chart\ChartContainer.razor.cs (8)
22
private
OtlpInstrumentData
? _instrument;
186
private async Task UpdateInstrumentDataAsync(
OtlpInstrumentData
instrument)
252
private async Task<(long UpdateVersion,
OtlpInstrumentData
? Instrument)> GetInstrumentAsync(bool useIncrementalCache, CancellationToken cancellationToken)
255
OtlpInstrumentData
? baseInstrument;
311
var
refreshedInstrument = await TelemetryRepository.GetInstrumentAsync(new GetInstrumentRequest
336
var
instrument = baseInstrument is not null && cursors.Count > 0
342
private bool TryPublishInstrument((long UpdateVersion,
OtlpInstrumentData
? Instrument) result)
444
private bool HaveDimensionFilterValuesChanged(
OtlpInstrumentData
instrument)
Components\Controls\Chart\MetricInstrumentDataCache.cs (4)
12
public static List<MetricDimensionCursor> CreateCursors(
OtlpInstrumentData
data, TimeSpan refreshLookback, TimeSpan dataPointInterval)
39
public static
OtlpInstrumentData
Merge(
40
OtlpInstrumentData
cached,
41
OtlpInstrumentData
refreshed,
Model\TelemetryExportService.cs (4)
198
var instrumentsData = new List<
OtlpInstrumentData
>();
201
var
instrumentData = await _dataSource.TelemetryRepository.GetInstrumentAsync(new GetInstrumentRequest
468
internal static OtlpTelemetryDataJson ConvertMetricsToOtlpJson(List<
OtlpInstrumentData
> instruments)
488
private static OtlpMetricJson ConvertInstrument(
OtlpInstrumentData
instrumentData)
Otlp\Storage\ITelemetryRepository.cs (1)
64
Task<
OtlpInstrumentData
?> GetInstrumentAsync(GetInstrumentRequest request, CancellationToken cancellationToken);
Otlp\Storage\SqliteTelemetryRepository.cs (1)
231
public Task<
OtlpInstrumentData
?> GetInstrumentAsync(GetInstrumentRequest request, CancellationToken cancellationToken) =>
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
110
private
OtlpInstrumentData
? GetInstrumentFromDatabase(GetInstrumentRequest request, CancellationToken cancellationToken)
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
52
public Task<
OtlpInstrumentData
?> GetInstrumentAsync(GetInstrumentRequest request, CancellationToken cancellationToken) => inner.GetInstrumentAsync(request, cancellationToken);
Aspire.Dashboard.Tests (54)
ChartDataCalculatorTests.cs (7)
457
var
cached = CreateInstrumentData([cachedDimension]);
458
var
refreshed = CreateInstrumentData([refreshedDimension, newDimension]);
464
var
merged = MetricInstrumentDataCache.Merge(cached, refreshed, cursors, start);
488
var
cached = CreateInstrumentData([cachedDimension]);
489
var
refreshed = CreateInstrumentData([refreshedDimension]);
494
var
merged = MetricInstrumentDataCache.Merge(cached, refreshed, cursors, start);
524
private static
OtlpInstrumentData
CreateInstrumentData(List<DimensionScope> dimensions)
Integration\OtlpHttpJsonTests.cs (1)
769
var
instrumentData = await telemetryRepository.GetInstrumentAsync(new GetInstrumentRequest
Model\TelemetryExportServiceTests.cs (4)
549
var instrumentsData = new List<
OtlpInstrumentData
>();
552
var
instrumentData = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
637
var instrumentsData = new List<
OtlpInstrumentData
>();
640
var
instrumentData = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
TelemetryRepositoryTests\MetricsTests.cs (40)
161
var
instrument = (await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
262
var
instrument = (await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
313
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
380
var
instrumentData = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
415
var
filteredInstrumentData = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
482
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
589
var
instrument = (await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
707
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
883
var
resource1Test1Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
898
var
resource1Test2Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
928
var
resource2Test1Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
943
var
resource2Test3Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1028
var
resource1Test1Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1039
var
resource1Test2Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1068
var
resource2Test1Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1083
var
resource2Test3Instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1184
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1248
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1294
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1374
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1443
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1506
var
instrument1 = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1523
var
instrument2 = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1617
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1661
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1696
var
instrument = await repository.GetInstrumentAsync(new GetInstrumentRequest
1728
var
instrument = await repository.GetInstrumentAsync(new GetInstrumentRequest
1773
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1823
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1902
var
initialInstrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1937
var
refreshedInstrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
1993
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
2022
var
initialInstrument = await GetInstrumentAsync([]);
2031
var
refreshedInstrument = await GetInstrumentAsync(cursors);
2057
async Task<
OtlpInstrumentData
> GetInstrumentAsync(IReadOnlyList<MetricDimensionCursor> dimensionCursors)
2114
var
instrument = await repositoryContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
2223
var
histogramInstrument = await repository.GetInstrumentAsync(new GetInstrumentRequest
2235
var
sumInstrument = await repository.GetInstrumentAsync(new GetInstrumentRequest
2299
var
instrument = await repository.GetInstrumentAsync(new GetInstrumentRequest
2362
var
instrument = await repository.GetInstrumentAsync(new GetInstrumentRequest
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (2)
415
var
instrument = await historicalContext.Repository.GetInstrumentAsync(new GetInstrumentRequest
494
var
instrument = await reopenedContext.Repository.GetInstrumentAsync(new GetInstrumentRequest