From 3f0130038a588743ae24733b05b732be528cfafc Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Wed, 6 Jul 2022 19:33:46 -0700 Subject: [PATCH] Fix liberty net.peer.port --- .../dispatcher/LibertyDispatcherNetAttributesGetter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/liberty/liberty-dispatcher/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/dispatcher/LibertyDispatcherNetAttributesGetter.java b/instrumentation/liberty/liberty-dispatcher/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/dispatcher/LibertyDispatcherNetAttributesGetter.java index 037be3fa135b..50ebb9606dc5 100644 --- a/instrumentation/liberty/liberty-dispatcher/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/dispatcher/LibertyDispatcherNetAttributesGetter.java +++ b/instrumentation/liberty/liberty-dispatcher/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/liberty/dispatcher/LibertyDispatcherNetAttributesGetter.java @@ -20,7 +20,7 @@ public String transport(LibertyRequest libertyRequest) { @Override @Nullable public Integer peerPort(LibertyRequest libertyRequest) { - return libertyRequest.getServerPort(); + return libertyRequest.peerPort(); } @Override