18 references to InstrumentKind
Microsoft.Gen.MetricsReports (18)
MetricDefinitionEmitter.cs (6)
83
case
InstrumentKind
.Counter:
84
case
InstrumentKind
.Histogram:
85
case
InstrumentKind
.Gauge:
147
case
InstrumentKind
.None:
148
case
InstrumentKind
.CounterT:
149
case
InstrumentKind
.HistogramT:
ReportedMetricClass.cs (1)
11
internal readonly record struct ReportedMetricMethod(string MetricName, string Summary,
InstrumentKind
Kind, HashSet<string> Dimensions, Dictionary<string, string> DimensionsDescriptions);
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (1)
20
public
InstrumentKind
InstrumentKind;
src\Generators\Microsoft.Gen.Metrics\Parser.cs (10)
217
private static (
InstrumentKind
instrumentKind, ITypeSymbol? genericType) GetInstrumentType(
223
return (
InstrumentKind
.None, null);
228
return (
InstrumentKind
.Counter, symbols.LongTypeSymbol);
233
return (
InstrumentKind
.Histogram, symbols.LongTypeSymbol);
239
return (
InstrumentKind
.Gauge, symbols.LongTypeSymbol);
244
return (
InstrumentKind
.CounterT, GetGenericType(methodAttributeSymbol));
249
return (
InstrumentKind
.HistogramT, GetGenericType(methodAttributeSymbol));
252
return (
InstrumentKind
.None, null);
401
if (instrumentKind ==
InstrumentKind
.None ||
407
if (instrumentKind ==
InstrumentKind
.Gauge)