14 writes to Key
Aspire.Cli.Tests (14)
Mcp\ListStructuredLogsToolTests.cs (6)
62
new() {
Key
= "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }
66
attributes.Add(new OtlpKeyValueJson {
Key
= "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
105
new OtlpKeyValueJson {
Key
= OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { StringValue = "42" } },
106
new OtlpKeyValueJson {
Key
= "custom.attr", Value = new OtlpAnyValueJson { StringValue = "custom-value" } }
120
new OtlpKeyValueJson {
Key
= OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 43 } }
134
new OtlpKeyValueJson {
Key
= OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 44 } }
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 } });
9 references to Key
aspire (9)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (8)
221
foreach (var attr in span.Attributes.Where(a => a.
Key
!= OtlpHelpers.AspireDestinationNameAttribute))
224
attributesObj[attr.
Key
!] = context.AddValue(attrValue, id => $@"Duplicate of attribute ""{id.Key}"" for span {OtlpHelpers.ToShortenedId(id.SpanId)}", (SpanId: spanId, attr.
Key
));
294
var key = attribute.
Key
;
499
if (attr.
Key
== key)
536
return attributes.Where(a => a.
Key
is not (ExceptionStackTraceField or ExceptionMessageField or ExceptionTypeField or OtlpHelpers.AspireLogIdAttribute));
588
attributesObject[attr.
Key
!] = context.AddValue(attrValue, id => $@"Duplicate of attribute ""{id.Key}"" for log entry {id.LogId}", (LogId: logId, attr.
Key
));
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (1)
44
if (attr.
Key
== "service.name" && attr.Value?.StringValue is not null)