43 references to GetValue
Aspire.Dashboard (43)
Components\Controls\Chart\ChartContainer.razor.cs (1)
153var value = OtlpHelpers.GetValue(attributes, filter.Name);
Model\BrowserLinkOutgoingPeerResolver.cs (2)
37var url = OtlpHelpers.GetValue(attributes, "url.full") ?? OtlpHelpers.GetValue(attributes, "http.url");
Model\GenAI\GenAIVisualizerDialogViewModel.cs (15)
74viewModel.ModelName = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIResponseModel); 79var toolDefinitionsJson = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIToolDefinitions); 166viewModel.Span.Attributes.GetValue("error.type"), 240var systemInstructions = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAISystemInstructions); 241var inputMessages = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIInputMessages); 242var outputMessages = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIOutputInstructions); 268if (item.Attributes.GetValue("event.name") is { } name && TryMapEventName(name, out var type)) 287var content = item.Attributes.GetValue(GenAIHelpers.GenAIEventContent); 634if (logEntry.Attributes.GetValue("event.name") == GenAIHelpers.GenAIEvaluationResultEventName) 663var name = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationName); 672ScoreLabel = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationScoreLabel), 673ScoreValue = ParseDouble(eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationScoreValue)), 674Explanation = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationExplanation), 675ResponseId = eventAttributes.GetValue(GenAIHelpers.GenAIResponseId), 676ErrorType = eventAttributes.GetValue(GenAIHelpers.ErrorType)
Model\SpanType.cs (1)
98if (!string.IsNullOrEmpty(span.Attributes.GetValue(attributeName)))
Model\StructureLogsDetailsViewModel.cs (2)
15var eventName = OtlpHelpers.GetValue(logEntry.Attributes, "event.name") 16?? OtlpHelpers.GetValue(logEntry.Attributes, "logrecord.event.name")
Otlp\Model\OtlpHelpers.cs (7)
340if (values.GetValue(name) is { } value) 351var value = values.GetValue(name); 375var address = GetValue(values, OtlpSpan.PeerServiceAttributeKey); 382if (GetValue(values, OtlpSpan.ServerAddressAttributeKey) is { } server) 384if (GetValue(values, OtlpSpan.ServerPortAttributeKey) is { } serverPort) 392if (GetValue(values, OtlpSpan.NetPeerNameAttributeKey) is { } peer) 394if (GetValue(values, OtlpSpan.NetPeerPortAttributeKey) is { } peerPort)
Otlp\Model\OtlpInstrument.cs (1)
93var currentDimensionValue = OtlpHelpers.GetValue(durableAttributes, key);
Otlp\Model\OtlpLogEntry.cs (2)
122_ => log.Attributes.GetValue(field) 153return logEntry.Attributes.GetValue(propertyName);
Otlp\Model\OtlpSpan.cs (12)
187else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 189var dbSystem = OtlpHelpers.GetValue(span.Attributes, "db.system"); 193else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 195var rpcSystem = OtlpHelpers.GetValue(span.Attributes, "rpc.system"); 196var rpcService = OtlpHelpers.GetValue(span.Attributes, "rpc.service"); 197var rpcMethod = OtlpHelpers.GetValue(span.Attributes, "rpc.method"); 201var grpcStatusCode = OtlpHelpers.GetValue(span.Attributes, "rpc.grpc.status_code"); 214else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system"))) 216var messagingSystem = OtlpHelpers.GetValue(span.Attributes, "messaging.system"); 217var messagingOperation = OtlpHelpers.GetValue(span.Attributes, "messaging.operation"); 218var destinationName = OtlpHelpers.GetValue(span.Attributes, "messaging.destination.name"); 241_ => span.Attributes.GetValue(field)