19 references to OtlpInstrumentType
Aspire.Dashboard (14)
Components\Controls\Chart\ChartBase.cs (1)
160
if (InstrumentViewModel.Instrument?.Type !=
OtlpInstrumentType
.Histogram || InstrumentViewModel.ShowCount)
Components\Controls\Chart\ChartContainer.razor.cs (1)
296
var includeExemplars = instrumentSummary.Type ==
OtlpInstrumentType
.Histogram;
Components\Controls\Chart\ChartFilters.razor.cs (1)
14
public required
OtlpInstrumentType
InstrumentType { get; set; }
Components\Controls\Chart\MetricTable.razor.cs (1)
262
return _instrument?.Type ==
OtlpInstrumentType
.Histogram;
Model\TelemetryExportService.cs (3)
501
case
OtlpInstrumentType
.Gauge:
507
case
OtlpInstrumentType
.Sum:
514
case
OtlpInstrumentType
.Histogram:
Otlp\Model\OtlpInstrument.cs (1)
15
public required
OtlpInstrumentType
Type { get; init; }
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
677
Type = (
OtlpInstrumentType
)record.InstrumentType,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (5)
806
private static
OtlpInstrumentType
MapMetricType(Metric.DataOneofCase dataCase)
810
Metric.DataOneofCase.Gauge =>
OtlpInstrumentType
.Gauge,
811
Metric.DataOneofCase.Sum =>
OtlpInstrumentType
.Sum,
812
Metric.DataOneofCase.Histogram =>
OtlpInstrumentType
.Histogram,
813
_ =>
OtlpInstrumentType
.Unsupported
Aspire.Dashboard.Components.Tests (2)
Controls\ChartFiltersTests.cs (1)
185
builder.Add(p => p.InstrumentType,
OtlpInstrumentType
.Sum);
Controls\PlotlyChartTests.cs (1)
71
Type =
OtlpInstrumentType
.Sum,
Aspire.Dashboard.Tests (3)
ChartDataCalculatorTests.cs (1)
535
Type =
OtlpInstrumentType
.Gauge,
Model\DefaultInstrumentUnitResolverTests.cs (1)
34
Type =
OtlpInstrumentType
.Gauge,
TelemetryRepositoryTests\MetricsTests.cs (1)
109
Assert.Equal(
OtlpInstrumentType
.Histogram, instrumentSummary.Type);