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