3 instantiations of Exemplar
Aspire.Dashboard (2)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (2)
5835private static readonly pb::MessageParser<Exemplar> _parser = new pb::MessageParser<Exemplar>(() => new Exemplar()); 5883return new Exemplar(this);
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\MetricsTests.cs (1)
411var exemplar = new Exemplar
37 references to Exemplar
Aspire.Dashboard (28)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (26)
131new 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) 3060private static readonly pb::FieldCodec<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> _repeated_exemplars_codec 3061= pb::FieldCodec.ForMessage(42, global::OpenTelemetry.Proto.Metrics.V1.Exemplar.Parser); 3062private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar>(); 3069public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> Exemplars { 3611private static readonly pb::FieldCodec<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> _repeated_exemplars_codec 3612= pb::FieldCodec.ForMessage(66, global::OpenTelemetry.Proto.Metrics.V1.Exemplar.Parser); 3613private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar>(); 3620public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> Exemplars { 4319private static readonly pb::FieldCodec<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> _repeated_exemplars_codec 4320= pb::FieldCodec.ForMessage(90, global::OpenTelemetry.Proto.Metrics.V1.Exemplar.Parser); 4321private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar>(); 4328public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.Exemplar> Exemplars { 5830public sealed partial class Exemplar : pb::IMessage<Exemplar> 5835private static readonly pb::MessageParser<Exemplar> _parser = new pb::MessageParser<Exemplar>(() => new Exemplar()); 5839public static pb::MessageParser<Exemplar> Parser { get { return _parser; } } 5863public Exemplar(Exemplar other) : this() { 5882public Exemplar Clone() { 6030return Equals(other as Exemplar); 6035public bool Equals(Exemplar other) { 6167public void MergeFrom(Exemplar other) {
Otlp\Model\MetricValues\DimensionScope.cs (2)
119private static void AddExemplars(MetricValueBase value, RepeatedField<Exemplar> exemplars, OtlpContext context) 123foreach (var exemplar in exemplars)
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
93public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null) 112private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null) 129foreach (var exemplar in exemplars)
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\MetricsTests.cs (3)
342CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), exemplars: new List<Exemplar> { CreateExemplar(startTime: s_testTime.AddMinutes(1), value: 2, attributes: [KeyValuePair.Create("key1", "value1")]) }), 409private static Exemplar CreateExemplar(DateTime startTime, double value, IEnumerable<KeyValuePair<string, string>>? attributes = null) 411var exemplar = new Exemplar
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
93public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null) 112private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null) 129foreach (var exemplar in exemplars)