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