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