41 references to GetValue
Aspire.Dashboard (41)
Model\BrowserLinkOutgoingPeerResolver.cs (2)
37var url = OtlpHelpers.GetValue(attributes, "url.full") ?? OtlpHelpers.GetValue(attributes, "http.url");
Model\DashboardSqliteOutgoingPeerResolver.cs (3)
14var isDashboardSqlite = string.Equals(attributes.GetValue(OtlpSpan.PeerServiceAttributeKey), DashboardRunStore.DatabaseFileName, StringComparison.Ordinal) && 15string.Equals(attributes.GetValue("db.system.name"), SqliteSystemName, StringComparison.Ordinal) && 16string.Equals(attributes.GetValue("db.namespace"), DashboardRunStore.DatabaseFileName, StringComparison.Ordinal);
Model\GenAI\GenAIVisualizerDialogViewModel.cs (13)
73viewModel.ModelName = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIResponseModel); 78var toolDefinitionsJson = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIToolDefinitions); 172viewModel.Span.Attributes.GetValue("error.type"), 285var systemInstructions = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAISystemInstructions); 286var inputMessages = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIInputMessages); 287var outputMessages = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIOutputInstructions); 337var content = item.Attributes.GetValue(GenAIHelpers.GenAIEventContent); 654var name = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationName); 663ScoreLabel = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationScoreLabel), 664ScoreValue = ParseDouble(eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationScoreValue)), 665Explanation = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationExplanation), 666ResponseId = eventAttributes.GetValue(GenAIHelpers.GenAIResponseId), 667ErrorType = eventAttributes.GetValue(GenAIHelpers.ErrorType)
Otlp\Model\OtlpHelpers.cs (9)
379if (values.GetValue(name) is { } value) 390var value = values.GetValue(name); 414var address = GetValue(values, OtlpSpan.PeerServiceAttributeKey); 421if (GetValue(values, OtlpSpan.ServerAddressAttributeKey) is { } server) 423if (GetValue(values, OtlpSpan.ServerPortAttributeKey) is { } serverPort) 431if (GetValue(values, OtlpSpan.NetPeerNameAttributeKey) is { } peer) 433if (GetValue(values, OtlpSpan.NetPeerPortAttributeKey) is { } peerPort) 555if (GetValue(logEntry.Attributes, "event.name") is { Length: > 0 } eventName) 560if (GetValue(logEntry.Attributes, "logrecord.event.name") is { Length: > 0 } logRecordEventName)
Otlp\Model\OtlpLogEntry.cs (2)
75_ => log.Attributes.GetValue(field) 106return logEntry.Attributes.GetValue(propertyName);
Otlp\Model\OtlpSpan.cs (12)
189else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 191var dbSystem = OtlpHelpers.GetValue(span.Attributes, "db.system"); 195else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 197var rpcSystem = OtlpHelpers.GetValue(span.Attributes, "rpc.system"); 198var rpcService = OtlpHelpers.GetValue(span.Attributes, "rpc.service"); 199var rpcMethod = OtlpHelpers.GetValue(span.Attributes, "rpc.method"); 203var grpcStatusCode = OtlpHelpers.GetValue(span.Attributes, "rpc.grpc.status_code"); 216else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system"))) 218var messagingSystem = OtlpHelpers.GetValue(span.Attributes, "messaging.system"); 219var messagingOperation = OtlpHelpers.GetValue(span.Attributes, "messaging.operation"); 220var destinationName = OtlpHelpers.GetValue(span.Attributes, "messaging.destination.name"); 245_ => span.Attributes.GetValue(field)