35 references to GetValue
Aspire.Dashboard (35)
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\GenAIVisualizerDialogViewModel.cs (7)
70
viewModel.ModelName = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAIResponseModel);
108
viewModel.Span.Attributes.
GetValue
("error.type"),
182
var systemInstructions = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAISystemInstructions);
183
var inputMessages = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAIInputMessages);
184
var outputMessages = viewModel.Span.Attributes.
GetValue
(GenAIHelpers.GenAIOutputInstructions);
210
if (item.Attributes.
GetValue
("event.name") is { } name && TryMapEventName(name, out var type))
229
var content = item.Attributes.
GetValue
(GenAIHelpers.GenAIEventContent);
Model\SpanType.cs (1)
98
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 (7)
340
if (values.
GetValue
(name) is { } value)
351
var value = values.
GetValue
(name);
375
var address =
GetValue
(values, OtlpSpan.PeerServiceAttributeKey);
382
if (
GetValue
(values, OtlpSpan.ServerAddressAttributeKey) is { } server)
384
if (
GetValue
(values, OtlpSpan.ServerPortAttributeKey) is { } serverPort)
392
if (
GetValue
(values, OtlpSpan.NetPeerNameAttributeKey) is { } peer)
394
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 (12)
187
else if (!string.IsNullOrEmpty(OtlpHelpers.
GetValue
(span.Attributes, "db.system")))
189
var dbSystem = OtlpHelpers.
GetValue
(span.Attributes, "db.system");
193
else if (!string.IsNullOrEmpty(OtlpHelpers.
GetValue
(span.Attributes, "rpc.system")))
195
var rpcSystem = OtlpHelpers.
GetValue
(span.Attributes, "rpc.system");
196
var rpcService = OtlpHelpers.
GetValue
(span.Attributes, "rpc.service");
197
var rpcMethod = OtlpHelpers.
GetValue
(span.Attributes, "rpc.method");
201
var grpcStatusCode = OtlpHelpers.
GetValue
(span.Attributes, "rpc.grpc.status_code");
214
else if (!string.IsNullOrEmpty(OtlpHelpers.
GetValue
(span.Attributes, "messaging.system")))
216
var messagingSystem = OtlpHelpers.
GetValue
(span.Attributes, "messaging.system");
217
var messagingOperation = OtlpHelpers.
GetValue
(span.Attributes, "messaging.operation");
218
var destinationName = OtlpHelpers.
GetValue
(span.Attributes, "messaging.destination.name");
241
_ => span.Attributes.
GetValue
(field)