20 writes to StringValue
Aspire.Cli.Tests (20)
Commands\TelemetryCommandTests.cs (2)
206
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } },
210
attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= instanceId } });
Commands\TelemetryLogsCommandTests.cs (1)
134
Body = new OtlpAnyValueJson {
StringValue
= e.body }
Commands\TelemetryTestHelper.cs (2)
42
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } },
46
attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= instanceId } });
Mcp\ListStructuredLogsToolTests.cs (7)
62
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } }
66
attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= serviceInstanceId } });
100
Body = new OtlpAnyValueJson {
StringValue
= "Application started successfully" },
105
new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson {
StringValue
= "42" } },
106
new OtlpKeyValueJson { Key = "custom.attr", Value = new OtlpAnyValueJson {
StringValue
= "custom-value" } }
115
Body = new OtlpAnyValueJson {
StringValue
= "Connection timeout warning" },
129
Body = new OtlpAnyValueJson {
StringValue
= "Worker failed to process message" },
Mcp\ListTracesToolTests.cs (8)
31
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } }
35
attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= serviceInstanceId } });
74
new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson {
StringValue
= "GET" } },
75
new OtlpKeyValueJson { Key = "http.url", Value = new OtlpAnyValueJson {
StringValue
= "/api/products" } }
91
new OtlpKeyValueJson { Key = "aspire.destination", Value = new OtlpAnyValueJson {
StringValue
= "catalog-service" } }
106
new OtlpKeyValueJson { Key = "error", Value = new OtlpAnyValueJson {
StringValue
= "Processing failed" } }
339
new() { Key = "service.name", Value = new OtlpAnyValueJson {
StringValue
= serviceName } }
343
attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson {
StringValue
= serviceInstanceId } });
7 references to StringValue
aspire (7)
Commands\TelemetryLogsCommand.cs (1)
269
var body = log.Body?.
StringValue
?? "";
src\Shared\ConsoleLogs\SharedAIHelpers.cs (2)
467
return logRecord.Body?.
StringValue
;
480
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
;