27 writes to Value
Aspire.Cli.Tests (27)
Commands\TelemetryCommandTests.cs (2)
375new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 379attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } });
Commands\TelemetryLogsCommandTests.cs (2)
597new OtlpKeyValueJson { Key = "aspire.log_id", Value = new OtlpAnyValueJson { StringValue = "42" } }, 598new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } }
Commands\TelemetrySpansCommandTests.cs (2)
331new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } }, 332new OtlpKeyValueJson { Key = "aspire.destination", Value = new OtlpAnyValueJson { StringValue = "backend" } }
Commands\TelemetryTestHelper.cs (2)
43new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 47attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } });
Commands\TelemetryTracesCommandTests.cs (1)
536new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } }
Mcp\ExcludeFromMcpTests.cs (3)
466Attributes = [new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = name } }] 481Attributes = [new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 1 } }] 511Attributes = [new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = name } }]
Mcp\ListStructuredLogsToolTests.cs (6)
61new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } } 65attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } }); 104new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { StringValue = "42" } }, 105new OtlpKeyValueJson { Key = "custom.attr", Value = new OtlpAnyValueJson { StringValue = "custom-value" } } 119new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 43 } } 133new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 44 } }
Mcp\ListTracesToolTests.cs (8)
30new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } } 34attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } }); 73new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } }, 74new OtlpKeyValueJson { Key = "http.url", Value = new OtlpAnyValueJson { StringValue = "/api/products" } } 90new OtlpKeyValueJson { Key = "aspire.destination", Value = new OtlpAnyValueJson { StringValue = "catalog-service" } } 105new OtlpKeyValueJson { Key = "error", Value = new OtlpAnyValueJson { StringValue = "Processing failed" } } 332new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } } 336attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
ProfileCaptureServiceTests.cs (1)
620Value = new OtlpAnyValueJson { StringValue = sessionId }
10 references to Value
aspire (10)
Profiling\ProfileCaptureService.cs (1)
484string.Equals(attribute.Value?.StringValue, sessionId, StringComparison.Ordinal)) is true;
src\Shared\ConsoleLogs\SharedAIHelpers.cs (5)
611if (attribute.Value is null) 616return attribute.Value.StringValue 617?? attribute.Value.IntValue?.ToString(CultureInfo.InvariantCulture) 618?? attribute.Value.DoubleValue?.ToString(CultureInfo.InvariantCulture) 619?? attribute.Value.BoolValue?.ToString(CultureInfo.InvariantCulture)
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (4)
44if (attr.Key == "service.name" && attr.Value?.StringValue is not null) 46return attr.Value.StringValue; 65if (attr.Key == "service.instance.id" && attr.Value?.StringValue is not null) 67return attr.Value.StringValue;