40 references to GetValue
Aspire.Dashboard (40)
Components\Controls\Chart\ChartContainer.razor.cs (1)
153
var value = OtlpHelpers.
GetValue
(attributes, filter.Name);
Model\BrowserLinkOutgoingPeerResolver.cs (2)
37
var url = OtlpHelpers.
GetValue
(attributes, "url.full") ?? OtlpHelpers.
GetValue
(attributes, "http.url");
Model\GenAI\GenAIHelpers.cs (2)
22
return attributes.
GetValue
(GenAISystem) is { Length: > 0 } ||
23
attributes.
GetValue
(GenAIProviderName) is { Length: > 0 };
Model\GenAI\GenAIVisualizerDialogViewModel.cs (7)
71
viewModel.ModelName = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAIResponseModel);
81
viewModel.Span.Attributes.
GetValue
("error.type"),
164
var systemInstructions = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAISystemInstructions);
165
var inputMessages = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAIInputMessages);
166
var outputMessages = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAIOutputInstructions);
197
if (item.Attributes.
GetValue
("event.name") is { } name && TryMapEventName(name, out var type))
216
var content = item.Attributes.
GetValue
(GenAIHelpers.GenAIEventContent);
Model\SpanType.cs (2)
93
if (!string.IsNullOrEmpty(span.Attributes.
GetValue
(attributeName)))
126
if (!string.IsNullOrEmpty(span.Attributes.
GetValue
(attributeName)))
Model\StructureLogsDetailsViewModel.cs (2)
15
var eventName = OtlpHelpers.
GetValue
(logEntry.Attributes, "event.name")
16
?? OtlpHelpers.
GetValue
(logEntry.Attributes, "logrecord.event.name")
Otlp\Model\OtlpHelpers.cs (6)
337
var value = values.
GetValue
(name);
361
var address =
GetValue
(values, OtlpSpan.PeerServiceAttributeKey);
368
if (
GetValue
(values, OtlpSpan.ServerAddressAttributeKey) is { } server)
370
if (
GetValue
(values, OtlpSpan.ServerPortAttributeKey) is { } serverPort)
378
if (
GetValue
(values, OtlpSpan.NetPeerNameAttributeKey) is { } peer)
380
if (
GetValue
(values, OtlpSpan.NetPeerPortAttributeKey) is { } peerPort)
Otlp\Model\OtlpInstrument.cs (1)
93
var currentDimensionValue = OtlpHelpers.
GetValue
(durableAttributes, key);
Otlp\Model\OtlpLogEntry.cs (2)
122
_ => log.Attributes.
GetValue
(field)
153
return logEntry.Attributes.
GetValue
(propertyName);
Otlp\Model\OtlpSpan.cs (15)
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)