4 writes to Value
Aspire.Dashboard (4)
Model\TelemetryExportService.cs (3)
330Value = new OtlpAnyValueJson { StringValue = resource.ResourceName } 335Value = new OtlpAnyValueJson { StringValue = resource.InstanceId } 361Value = new OtlpAnyValueJson { StringValue = a.Value }
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (1)
79Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).Value = value!,
10 references to Value
Aspire.Dashboard (4)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
788if (json.Value is not null) 790kv.Value = ToProtobuf(json.Value);
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (2)
78Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).Value, 111global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson __value_Value = ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)value).Value;
Aspire.Dashboard.Tests (6)
Model\TelemetryExportServiceTests.cs (6)
61Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 62Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_INSTANCE_ID && a.Value?.StringValue == "instance-1"); 83Assert.Contains(logRecord.Attributes, a => a.Key == "custom.attr" && a.Value?.StringValue == "custom-value"); 269Assert.Contains(resourceSpans.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 292Assert.Contains(span.Attributes, a => a.Key == "http.method" && a.Value?.StringValue == "GET"); 381Assert.Contains(resourceMetrics.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService");