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