12 writes to Value
Aspire.Dashboard (6)
Model\TelemetryExportService.cs (5)
623Value = new OtlpAnyValueJson { StringValue = resourceView.Resource.ResourceName } 628Value = new OtlpAnyValueJson { StringValue = resourceView.Resource.InstanceId } 638Value = new OtlpAnyValueJson { StringValue = property.Value } 675Value = new OtlpAnyValueJson { StringValue = attributes[i].Value } 686Value = new OtlpAnyValueJson { StringValue = additionalAttributes[i].Value }
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (1)
79Setter = static (obj, value) => ((global::Aspire.Otlp.Serialization.OtlpKeyValueJson)obj).Value = value!,
Aspire.Dashboard.Tests (6)
Model\TelemetryImportServiceTests.cs (6)
439new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 440new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } } 484new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 485new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } } 529new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 530new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
21 references to Value
Aspire.Dashboard (11)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
789if (json.Value is not null) 791kv.Value = ToProtobuf(json.Value);
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (2)
78Getter = static obj => ((global::Aspire.Otlp.Serialization.OtlpKeyValueJson)obj).Value, 111global::Aspire.Otlp.Serialization.OtlpAnyValueJson __value_Value = ((global::Aspire.Otlp.Serialization.OtlpKeyValueJson)value).Value;
src\Shared\ConsoleLogs\SharedAIHelpers.cs (5)
475if (attribute.Value is null) 480return attribute.Value.StringValue 481?? attribute.Value.IntValue?.ToString(CultureInfo.InvariantCulture) 482?? attribute.Value.DoubleValue?.ToString(CultureInfo.InvariantCulture) 483?? attribute.Value.BoolValue?.ToString(CultureInfo.InvariantCulture)
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (2)
44if (attr.Key == "service.name" && attr.Value?.StringValue is not null) 46return attr.Value.StringValue;
Aspire.Dashboard.Tests (10)
Model\TelemetryExportServiceTests.cs (9)
70Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 71Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_INSTANCE_ID && a.Value?.StringValue == "instance-1"); 92Assert.Contains(logRecord.Attributes, a => a.Key == "custom.attr" && a.Value?.StringValue == "custom-value"); 130Assert.Equal(logs.Items[0].InternalId.ToString(CultureInfo.InvariantCulture), logIdAttribute.Value?.StringValue); 304Assert.Contains(resourceSpans.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 327Assert.Contains(span.Attributes, a => a.Key == "http.method" && a.Value?.StringValue == "GET"); 419Assert.Contains(span.Attributes, a => a.Key == OtlpHelpers.AspireDestinationNameAttribute && a.Value?.StringValue == "target-service"); 519Assert.Contains(resourceMetrics.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 865Assert.Equal(japaneseAttributeValue, japaneseAttr.Value?.StringValue);
Model\TelemetryImportServiceTests.cs (1)
349Assert.Contains(exportedLogRecord.Attributes!, a => a.Key == OtlpHelpers.AspireLogIdAttribute && a.Value?.StringValue == originalInternalId.ToString(CultureInfo.InvariantCulture));