19 references to InstrumentKind
Microsoft.Gen.Metrics (19)
Emitter.cs (4)
166case InstrumentKind.Counter: 167case InstrumentKind.CounterT: 172case InstrumentKind.Histogram: 173case InstrumentKind.HistogramT:
MetricFactoryEmitter.cs (4)
128InstrumentKind.Counter => $"CreateCounter<{metricMethod.GenericType}>", 129InstrumentKind.CounterT => $"CreateCounter<{metricMethod.GenericType}>", 130InstrumentKind.Histogram => $"CreateHistogram<{metricMethod.GenericType}>", 131InstrumentKind.HistogramT => $"CreateHistogram<{metricMethod.GenericType}>",
Model\MetricMethod.cs (1)
20public InstrumentKind InstrumentKind;
Parser.cs (10)
217private static (InstrumentKind instrumentKind, ITypeSymbol? genericType) GetInstrumentType( 223return (InstrumentKind.None, null); 228return (InstrumentKind.Counter, symbols.LongTypeSymbol); 233return (InstrumentKind.Histogram, symbols.LongTypeSymbol); 239return (InstrumentKind.Gauge, symbols.LongTypeSymbol); 244return (InstrumentKind.CounterT, GetGenericType(methodAttributeSymbol)); 249return (InstrumentKind.HistogramT, GetGenericType(methodAttributeSymbol)); 252return (InstrumentKind.None, null); 401if (instrumentKind == InstrumentKind.None || 407if (instrumentKind == InstrumentKind.Gauge)