2 writes to Attributes
Aspire.Dashboard (2)
Model\TelemetryExportService.cs (1)
405
Attributes
= ConvertAttributes(span.Attributes, destinationName is not null
OtlpJsonSerializerContext.OtlpSpanJson.g.cs (1)
239
Setter = static (obj, value) => ((global::Aspire.Otlp.Serialization.OtlpSpanJson)obj).
Attributes
= value!,
12 references to Attributes
Aspire.Dashboard (6)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
151
if (json.
Attributes
is not null)
153
foreach (var attr in json.
Attributes
)
OtlpJsonSerializerContext.OtlpSpanJson.g.cs (1)
238
Getter = static obj => ((global::Aspire.Otlp.Serialization.OtlpSpanJson)obj).
Attributes
,
src\Shared\ConsoleLogs\SharedAIHelpers.cs (3)
219
if (span.
Attributes
is not null)
221
foreach (var attr in span.
Attributes
.Where(a => a.Key != OtlpHelpers.AspireDestinationNameAttribute))
240
var destination = GetAttributeStringValue(span.
Attributes
, OtlpHelpers.AspireDestinationNameAttribute);
Aspire.Dashboard.Tests (6)
Model\TelemetryExportServiceTests.cs (6)
326
Assert.NotNull(span.
Attributes
);
327
Assert.Contains(span.
Attributes
, a => a.Key == "http.method" && a.Value?.StringValue == "GET");
418
Assert.NotNull(span.
Attributes
);
419
Assert.Contains(span.
Attributes
, a => a.Key == OtlpHelpers.AspireDestinationNameAttribute && a.Value?.StringValue == "target-service");
461
Assert.NotNull(span.
Attributes
);
462
Assert.DoesNotContain(span.
Attributes
, a => a.Key == OtlpHelpers.AspireDestinationNameAttribute);