4 writes to Attributes
Aspire.Dashboard (2)
Otlp\Model\OtlpSpan.cs (1)
93Attributes = item.Attributes,
Otlp\Storage\TelemetryRepository.cs (1)
1233Attributes = span.Attributes.ToKeyValuePairs(context),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
311Attributes = attributes ?? [],
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
311Attributes = attributes ?? [],
26 references to Attributes
Aspire.Dashboard (25)
Model\Otlp\SpanWaterfallViewModel.cs (3)
151var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 218if (resolver.TryResolvePeer(span.Attributes, out var name, out _)) 225return OtlpHelpers.GetPeerAddress(span.Attributes);
Model\TraceHelpers.cs (2)
118if (span.Attributes.HasKey("messaging.system")) 127if (span.Attributes.HasKey("messaging.system"))
Otlp\Model\OtlpSpan.cs (17)
93Attributes = item.Attributes, 120foreach (var kv in Attributes.OrderBy(a => a.Key)) 144if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "http.method"))) 146var httpMethod = OtlpHelpers.GetValue(span.Attributes, "http.method"); 147var statusCode = OtlpHelpers.GetValue(span.Attributes, "http.status_code"); 151else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 153var dbSystem = OtlpHelpers.GetValue(span.Attributes, "db.system"); 157else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 159var rpcSystem = OtlpHelpers.GetValue(span.Attributes, "rpc.system"); 160var rpcService = OtlpHelpers.GetValue(span.Attributes, "rpc.service"); 161var rpcMethod = OtlpHelpers.GetValue(span.Attributes, "rpc.method"); 165var grpcStatusCode = OtlpHelpers.GetValue(span.Attributes, "rpc.grpc.status_code"); 178else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system"))) 180var messagingSystem = OtlpHelpers.GetValue(span.Attributes, "messaging.system"); 181var messagingOperation = OtlpHelpers.GetValue(span.Attributes, "messaging.operation"); 182var destinationName = OtlpHelpers.GetValue(span.Attributes, "messaging.destination.name"); 205_ => span.Attributes.GetValue(field)
Otlp\Storage\TelemetryRepository.cs (3)
1054foreach (var kvp in newSpan.Attributes) 1110var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 1138if (resolver.TryResolvePeer(span.Attributes, out _, out var matchedResourced))
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\TraceTests.cs (1)
826Assert.Collection(trace.FirstSpan.Attributes,