41 references to GetValue
Aspire.Dashboard (41)
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 (13)
72viewModel.ModelName = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIResponseModel); 77var toolDefinitionsJson = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIToolDefinitions); 170viewModel.Span.Attributes.GetValue("error.type"), 244var systemInstructions = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAISystemInstructions); 245var inputMessages = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIInputMessages); 246var outputMessages = viewModel.Span.Attributes.GetValue(GenAIHelpers.GenAIOutputInstructions); 291var content = item.Attributes.GetValue(GenAIHelpers.GenAIEventContent); 620var name = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationName); 629ScoreLabel = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationScoreLabel), 630ScoreValue = ParseDouble(eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationScoreValue)), 631Explanation = eventAttributes.GetValue(GenAIHelpers.GenAIEvaluationExplanation), 632ResponseId = eventAttributes.GetValue(GenAIHelpers.GenAIResponseId), 633ErrorType = eventAttributes.GetValue(GenAIHelpers.ErrorType)
Model\SpanType.cs (1)
98if (!string.IsNullOrEmpty(span.Attributes.GetValue(attributeName)))
Otlp\Model\OtlpHelpers.cs (9)
349if (values.GetValue(name) is { } value) 360var value = values.GetValue(name); 384var address = GetValue(values, OtlpSpan.PeerServiceAttributeKey); 391if (GetValue(values, OtlpSpan.ServerAddressAttributeKey) is { } server) 393if (GetValue(values, OtlpSpan.ServerPortAttributeKey) is { } serverPort) 401if (GetValue(values, OtlpSpan.NetPeerNameAttributeKey) is { } peer) 403if (GetValue(values, OtlpSpan.NetPeerPortAttributeKey) is { } peerPort) 520if (GetValue(logEntry.Attributes, "event.name") is { Length: > 0 } eventName) 525if (GetValue(logEntry.Attributes, "logrecord.event.name") is { Length: > 0 } logRecordEventName)
Otlp\Model\OtlpInstrument.cs (1)
94var currentDimensionValue = OtlpHelpers.GetValue(durableAttributes, key);
Otlp\Model\OtlpLogEntry.cs (2)
136_ => log.Attributes.GetValue(field) 167return 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)