Fix liberty net.peer.port
MODIFY
instrumentation/liberty/liberty-dispatcher/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/dispatcher/LibertyDispatcherNetAttributesGetter.java
instrumentation/liberty/liberty-dispatcher/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/dispatcher/LibertyDispatcherNetAttributesGetter.java
@@ -20,7 +20,7 @@ public class LibertyDispatcherNetAttributesGetter
@Override
@Nullable
public Integer peerPort(LibertyRequest libertyRequest) {
- return libertyRequest.getServerPort();
+ return libertyRequest.peerPort();
}
@Override

Fix liberty net.peer.port (#6274)