26 references to InstrumentKind
Microsoft.Gen.MetadataExtractor (26)
src\Generators\Microsoft.Gen.Metrics\Emitter.cs (4)
166
case
InstrumentKind
.Counter:
167
case
InstrumentKind
.CounterT:
172
case
InstrumentKind
.Histogram:
173
case
InstrumentKind
.HistogramT:
src\Generators\Microsoft.Gen.Metrics\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}>",
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)
src\Generators\Microsoft.Gen.MetricsReports\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:
src\Generators\Microsoft.Gen.MetricsReports\ReportedMetricClass.cs (1)
11
internal readonly record struct ReportedMetricMethod(string MetricName, string Summary,
InstrumentKind
Kind, HashSet<string> Dimensions, Dictionary<string, string> DimensionsDescriptions);