26 references to InstrumentKind
Microsoft.Gen.MetadataExtractor (26)
src\Generators\Microsoft.Gen.Metrics\Emitter.cs (4)
166case InstrumentKind.Counter: 167case InstrumentKind.CounterT: 172case InstrumentKind.Histogram: 173case InstrumentKind.HistogramT:
src\Generators\Microsoft.Gen.Metrics\MetricFactoryEmitter.cs (4)
128InstrumentKind.Counter => $"CreateCounter<{metricMethod.GenericType}>", 129InstrumentKind.CounterT => $"CreateCounter<{metricMethod.GenericType}>", 130InstrumentKind.Histogram => $"CreateHistogram<{metricMethod.GenericType}>", 131InstrumentKind.HistogramT => $"CreateHistogram<{metricMethod.GenericType}>",
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)
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (6)
83case InstrumentKind.Counter: 84case InstrumentKind.Histogram: 85case InstrumentKind.Gauge: 147case InstrumentKind.None: 148case InstrumentKind.CounterT: 149case InstrumentKind.HistogramT:
src\Generators\Microsoft.Gen.MetricsReports\ReportedMetricClass.cs (1)
11internal readonly record struct ReportedMetricMethod(string MetricName, string Summary, InstrumentKind Kind, HashSet<string> Dimensions, Dictionary<string, string> DimensionsDescriptions);