4 writes to Attributes
Aspire.Dashboard (2)
Otlp\Model\OtlpSpan.cs (1)
87Attributes = item.Attributes,
Otlp\Storage\TelemetryRepository.cs (1)
1196Attributes = span.Attributes.ToKeyValuePairs(context),
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
310Attributes = attributes ?? [],
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
310Attributes = attributes ?? [],
25 references to Attributes
Aspire.Dashboard (24)
Components\Pages\TraceDetail.razor.cs (1)
144if (span.Attributes.HasKey("messaging.system"))
Model\Otlp\SpanWaterfallViewModel.cs (3)
147var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 188if (resolver.TryResolvePeer(span.Attributes, out var name, out _)) 195return OtlpHelpers.GetPeerAddress(span.Attributes);
Otlp\Model\OtlpSpan.cs (17)
87Attributes = item.Attributes, 114foreach (var kv in Attributes.OrderBy(a => a.Key)) 138if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "http.method"))) 140var httpMethod = OtlpHelpers.GetValue(span.Attributes, "http.method"); 141var statusCode = OtlpHelpers.GetValue(span.Attributes, "http.status_code"); 145else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 147var dbSystem = OtlpHelpers.GetValue(span.Attributes, "db.system"); 151else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 153var rpcSystem = OtlpHelpers.GetValue(span.Attributes, "rpc.system"); 154var rpcService = OtlpHelpers.GetValue(span.Attributes, "rpc.service"); 155var rpcMethod = OtlpHelpers.GetValue(span.Attributes, "rpc.method"); 159var grpcStatusCode = OtlpHelpers.GetValue(span.Attributes, "rpc.grpc.status_code"); 172else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system"))) 174var messagingSystem = OtlpHelpers.GetValue(span.Attributes, "messaging.system"); 175var messagingOperation = OtlpHelpers.GetValue(span.Attributes, "messaging.operation"); 176var destinationName = OtlpHelpers.GetValue(span.Attributes, "messaging.destination.name"); 199_ => span.Attributes.GetValue(field)
Otlp\Storage\TelemetryRepository.cs (3)
1018foreach (var kvp in newSpan.Attributes) 1073var hasPeerService = OtlpHelpers.GetPeerAddress(span.Attributes) != null; 1101if (resolver.TryResolvePeer(span.Attributes, out _, out var matchedResourced))
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\TraceTests.cs (1)
826Assert.Collection(trace.FirstSpan.Attributes,