19 references to InstrumentKind
Microsoft.Gen.Metrics (19)
Emitter.cs (4)
166
case
InstrumentKind
.Counter:
167
case
InstrumentKind
.CounterT:
172
case
InstrumentKind
.Histogram:
173
case
InstrumentKind
.HistogramT:
MetricFactoryEmitter.cs (4)
128
InstrumentKind
.Counter => $"CreateCounter<{metricMethod.GenericType}>",
129
InstrumentKind
.CounterT => $"CreateCounter<{metricMethod.GenericType}>",
130
InstrumentKind
.Histogram => $"CreateHistogram<{metricMethod.GenericType}>",
131
InstrumentKind
.HistogramT => $"CreateHistogram<{metricMethod.GenericType}>",
Model\MetricMethod.cs (1)
20
public
InstrumentKind
InstrumentKind;
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)