31 writes to StringValue
Aspire.Cli.Tests (31)
Commands\ExportCommandTests.cs (1)
974
Body = new OtlpAnyValueJson {
StringValue
= e.body }
Commands\TelemetryCommandTests.cs (2)
591
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } },
595
attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= instanceId } });
Commands\TelemetryLogsCommandTests.cs (4)
166
Body = new OtlpAnyValueJson {
StringValue
= e.body }
599
Body = new OtlpAnyValueJson {
StringValue
= "Request started" },
602
new OtlpKeyValueJson { Key = "aspire.log_id", Value = new OtlpAnyValueJson {
StringValue
= "42" } },
603
new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson {
StringValue
= "GET" } }
Commands\TelemetrySpansCommandTests.cs (2)
331
new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson {
StringValue
= "GET" } },
332
new OtlpKeyValueJson { Key = "aspire.destination", Value = new OtlpAnyValueJson {
StringValue
= "backend" } }
Commands\TelemetryTestHelper.cs (2)
43
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } },
47
attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= instanceId } });
Commands\TelemetryTracesCommandTests.cs (1)
536
new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson {
StringValue
= "GET" } }
Mcp\ExcludeFromMcpTests.cs (3)
500
Attributes = [new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= name } }]
514
Body = new OtlpAnyValueJson {
StringValue
= $"Log from {name}" },
545
Attributes = [new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= name } }]
Mcp\ListStructuredLogsToolTests.cs (7)
173
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } }
177
attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= serviceInstanceId } });
211
Body = new OtlpAnyValueJson {
StringValue
= "Application started successfully" },
216
new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson {
StringValue
= "42" } },
217
new OtlpKeyValueJson { Key = "custom.attr", Value = new OtlpAnyValueJson {
StringValue
= "custom-value" } }
226
Body = new OtlpAnyValueJson {
StringValue
= "Connection timeout warning" },
240
Body = new OtlpAnyValueJson {
StringValue
= "Worker failed to process message" },
Mcp\ListTracesToolTests.cs (8)
94
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } }
98
attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= serviceInstanceId } });
137
new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson {
StringValue
= "GET" } },
138
new OtlpKeyValueJson { Key = "http.url", Value = new OtlpAnyValueJson {
StringValue
= "/api/products" } }
154
new OtlpKeyValueJson { Key = "aspire.destination", Value = new OtlpAnyValueJson {
StringValue
= "catalog-service" } }
169
new OtlpKeyValueJson { Key = "error", Value = new OtlpAnyValueJson {
StringValue
= "Processing failed" } }
396
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } }
400
attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= serviceInstanceId } });
ProfileCaptureServiceTests.cs (1)
683
Value = new OtlpAnyValueJson {
StringValue
= sessionId }
8 references to StringValue
aspire (8)
Commands\TelemetryLogsCommand.cs (1)
258
var body = log.Body?.
StringValue
?? "";
Profiling\ProfileCaptureService.cs (1)
487
string.Equals(attribute.Value?.
StringValue
, sessionId, StringComparison.Ordinal)) is true;
src\Shared\ConsoleLogs\SharedAIHelpers.cs (2)
603
return logRecord.Body?.
StringValue
;
616
return attribute.Value.
StringValue
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (4)
44
if (attr.Key == "service.name" && attr.Value?.
StringValue
is not null)
46
return attr.Value.
StringValue
;
65
if (attr.Key == "service.instance.id" && attr.Value?.
StringValue
is not null)
67
return attr.Value.
StringValue
;