6 instantiations of Metric
Aspire.Dashboard (2)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (2)
1104private static readonly pb::MessageParser<Metric> _parser = new pb::MessageParser<Metric>(() => new Metric()); 1160return new Metric(this);
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
61return new Metric 86return new Metric
Aspire.Dashboard.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
61return new Metric 86return new Metric
29 references to Metric
Aspire.Dashboard (25)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (16)
119new pbr::GeneratedClrTypeInfo(typeof(global::OpenTelemetry.Proto.Metrics.V1.Metric), global::OpenTelemetry.Proto.Metrics.V1.Metric.Parser, new[]{ "Name", "Description", "Unit", "Gauge", "Sum", "Histogram", "ExponentialHistogram", "Summary" }, new[]{ "Data" }, null, null, null), 797private static readonly pb::FieldCodec<global::OpenTelemetry.Proto.Metrics.V1.Metric> _repeated_metrics_codec 798= pb::FieldCodec.ForMessage(18, global::OpenTelemetry.Proto.Metrics.V1.Metric.Parser); 799private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Metric> metrics_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Metric>(); 805public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Metric> Metrics { 1099public sealed partial class Metric : pb::IMessage<Metric> 1104private static readonly pb::MessageParser<Metric> _parser = new pb::MessageParser<Metric>(() => new Metric()); 1108public static pb::MessageParser<Metric> Parser { get { return _parser; } } 1132public Metric(Metric other) : this() { 1159public Metric Clone() { 1296return Equals(other as Metric); 1301public bool Equals(Metric other) { 1467public void MergeFrom(Metric other) {
Otlp\Model\OtlpApplication.cs (5)
51foreach (var metric in sm.Metrics) 87private static OtlpInstrumentType MapMetricType(Metric.DataOneofCase data) 91Metric.DataOneofCase.Gauge => OtlpInstrumentType.Gauge, 92Metric.DataOneofCase.Sum => OtlpInstrumentType.Sum, 93Metric.DataOneofCase.Histogram => OtlpInstrumentType.Histogram,
Otlp\Model\OtlpInstrument.cs (4)
42public void AddMetrics(Metric metric, ref KeyValuePair<string, string>[]? tempAttributes) 46case Metric.DataOneofCase.Gauge: 52case Metric.DataOneofCase.Sum: 58case Metric.DataOneofCase.Histogram:
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
59public static Metric CreateHistogramMetric(string metricName, DateTime startTime) 84public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null)
Aspire.Dashboard.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
59public static Metric CreateHistogramMetric(string metricName, DateTime startTime) 84public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null)