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)
296var includeExemplars = instrumentSummary.Type == OtlpInstrumentType.Histogram;
Components\Controls\Chart\ChartFilters.razor.cs (1)
14public required OtlpInstrumentType InstrumentType { get; set; }
Components\Controls\Chart\MetricTable.razor.cs (1)
262return _instrument?.Type == OtlpInstrumentType.Histogram;
Model\TelemetryExportService.cs (3)
501case OtlpInstrumentType.Gauge: 507case OtlpInstrumentType.Sum: 514case OtlpInstrumentType.Histogram:
Otlp\Model\OtlpInstrument.cs (1)
15public required OtlpInstrumentType Type { get; init; }
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
677Type = (OtlpInstrumentType)record.InstrumentType,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (5)
806private static OtlpInstrumentType MapMetricType(Metric.DataOneofCase dataCase) 810Metric.DataOneofCase.Gauge => OtlpInstrumentType.Gauge, 811Metric.DataOneofCase.Sum => OtlpInstrumentType.Sum, 812Metric.DataOneofCase.Histogram => OtlpInstrumentType.Histogram, 813_ => OtlpInstrumentType.Unsupported
Aspire.Dashboard.Components.Tests (2)
Controls\ChartFiltersTests.cs (1)
185builder.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)
109Assert.Equal(OtlpInstrumentType.Histogram, instrumentSummary.Type);