3 instantiations of Exemplar
Aspire.Dashboard (2)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (2)
5737
private static readonly pb::MessageParser<Exemplar> _parser = new pb::MessageParser<Exemplar>(() => new
Exemplar
());
5785
return new
Exemplar
(this);
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\MetricsTests.cs (1)
403
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)
129
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)
2971
private 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);
2973
private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
>();
2980
public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
> Exemplars {
3516
private 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);
3518
private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
>();
3525
public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
> Exemplars {
4223
private 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);
4225
private readonly pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
> exemplars_ = new pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
>();
4232
public pbc::RepeatedField<global::OpenTelemetry.Proto.Metrics.V1.
Exemplar
> Exemplars {
5732
public sealed partial class Exemplar : pb::IMessage<
Exemplar
>
5737
private static readonly pb::MessageParser<
Exemplar
> _parser = new pb::MessageParser<
Exemplar
>(() => new Exemplar());
5741
public static pb::MessageParser<
Exemplar
> Parser { get { return _parser; } }
5765
public Exemplar(
Exemplar
other) : this() {
5784
public
Exemplar
Clone() {
5932
return Equals(other as
Exemplar
);
5937
public bool Equals(
Exemplar
other) {
6069
public void MergeFrom(
Exemplar
other) {
Otlp\Model\MetricValues\DimensionScope.cs (2)
112
private static void AddExemplars(MetricValueBase value, RepeatedField<
Exemplar
> exemplars, OtlpContext context)
116
foreach (
var
exemplar in exemplars)
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
84
public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<
Exemplar
>? exemplars = null, int? value = null)
103
private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<
Exemplar
>? exemplars = null)
120
foreach (
var
exemplar in exemplars)
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\MetricsTests.cs (3)
334
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")]) }),
401
private static
Exemplar
CreateExemplar(DateTime startTime, double value, IEnumerable<KeyValuePair<string, string>>? attributes = null)
403
var
exemplar = new Exemplar
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
84
public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<
Exemplar
>? exemplars = null, int? value = null)
103
private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<
Exemplar
>? exemplars = null)
120
foreach (
var
exemplar in exemplars)