19 references to OtlpInstrumentType
Aspire.Dashboard (14)
Components\Controls\Chart\ChartBase.cs (1)
160if (InstrumentViewModel.Instrument?.Type != OtlpInstrumentType.Histogram || InstrumentViewModel.ShowCount)
Components\Controls\Chart\ChartContainer.razor.cs (1)
302var includeExemplars = instrumentSummary.Type == OtlpInstrumentType.Histogram;
Components\Controls\Chart\ChartFilters.razor.cs (1)
17public required OtlpInstrumentType InstrumentType { get; set; }
Components\Controls\Chart\MetricTable.razor.cs (1)
253return _instrument?.Type == OtlpInstrumentType.Histogram;
Model\TelemetryExportService.cs (3)
503case OtlpInstrumentType.Gauge: 509case OtlpInstrumentType.Sum: 516case OtlpInstrumentType.Histogram:
Otlp\Model\OtlpInstrument.cs (1)
15public required OtlpInstrumentType Type { get; init; }
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
675Type = (OtlpInstrumentType)record.InstrumentType,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (5)
814private static OtlpInstrumentType MapMetricType(Metric.DataOneofCase dataCase) 818Metric.DataOneofCase.Gauge => OtlpInstrumentType.Gauge, 819Metric.DataOneofCase.Sum => OtlpInstrumentType.Sum, 820Metric.DataOneofCase.Histogram => OtlpInstrumentType.Histogram, 821_ => OtlpInstrumentType.Unsupported
Aspire.Dashboard.Components.Tests (2)
Controls\ChartFiltersTests.cs (1)
355builder.Add(p => p.InstrumentType, OtlpInstrumentType.Sum);
Controls\PlotlyChartTests.cs (1)
71Type = OtlpInstrumentType.Sum,
Aspire.Dashboard.Tests (3)
ChartDataCalculatorTests.cs (1)
535Type = OtlpInstrumentType.Gauge,
Model\DefaultInstrumentUnitResolverTests.cs (1)
34Type = OtlpInstrumentType.Gauge,
TelemetryRepositoryTests\MetricsTests.cs (1)
106Assert.Equal(OtlpInstrumentType.Histogram, instrumentSummary.Type);