3 instantiations of Exemplar
Aspire.Dashboard (2)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (2)
5737private static readonly pb::MessageParser<Exemplar> _parser = new pb::MessageParser<Exemplar>(() => new Exemplar()); 5785return new Exemplar(this);
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\MetricsTests.cs (1)
403var exemplar = new Exemplar
37 references to Exemplar
Aspire.Dashboard (28)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (26)
129new pbr::GeneratedClrTypeInfo(typeof(global::OpenTelemetry.Proto.Metrics.V1.Exemplar), global::OpenTelemetry.Proto.Metrics.V1.Exemplar.Parser, new[]{ "FilteredAttributes", "TimeUnixNano", "AsDouble", "AsInt", "SpanId", "TraceId" }, new[]{ "Value" }, null, null, null) 2971private static readonly pb::FieldCodec<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> _repeated_exemplars_codec 2972= pb::FieldCodec.ForMessage(42, global::OpenTelemetry.Proto.Metrics.V1.Exemplar.Parser); 2973private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar>(); 2980public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> Exemplars { 3516private static readonly pb::FieldCodec<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> _repeated_exemplars_codec 3517= pb::FieldCodec.ForMessage(66, global::OpenTelemetry.Proto.Metrics.V1.Exemplar.Parser); 3518private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar>(); 3525public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> Exemplars { 4223private static readonly pb::FieldCodec<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> _repeated_exemplars_codec 4224= pb::FieldCodec.ForMessage(90, global::OpenTelemetry.Proto.Metrics.V1.Exemplar.Parser); 4225private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar>(); 4232public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> Exemplars { 5732public sealed partial class Exemplar : pb::IMessage<Exemplar> 5737private static readonly pb::MessageParser<Exemplar> _parser = new pb::MessageParser<Exemplar>(() => new Exemplar()); 5741public static pb::MessageParser<Exemplar> Parser { get { return _parser; } } 5765public Exemplar(Exemplar other) : this() { 5784public Exemplar Clone() { 5932return Equals(other as Exemplar); 5937public bool Equals(Exemplar other) { 6069public void MergeFrom(Exemplar other) {
Otlp\Model\MetricValues\DimensionScope.cs (2)
112private static void AddExemplars(MetricValueBase value, RepeatedField<Exemplar> exemplars, OtlpContext context) 116foreach (var exemplar in exemplars)
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
84public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null) 103private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null) 120foreach (var exemplar in exemplars)
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\MetricsTests.cs (3)
334CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), exemplars: new List<Exemplar> { CreateExemplar(startTime: s_testTime.AddMinutes(1), value: 2, attributes: [KeyValuePair.Create("key1", "value1")]) }), 401private static Exemplar CreateExemplar(DateTime startTime, double value, IEnumerable<KeyValuePair<string, string>>? attributes = null) 403var exemplar = new Exemplar
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
84public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null) 103private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null) 120foreach (var exemplar in exemplars)