18 references to InstrumentKind
Microsoft.Gen.MetricsReports (18)
MetricDefinitionEmitter.cs (6)
83case InstrumentKind.Counter: 84case InstrumentKind.Histogram: 85case InstrumentKind.Gauge: 147case InstrumentKind.None: 148case InstrumentKind.CounterT: 149case InstrumentKind.HistogramT:
ReportedMetricClass.cs (1)
11internal 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)
20public InstrumentKind InstrumentKind;
src\Generators\Microsoft.Gen.Metrics\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)