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