Skip to content

Commit 51d107c

Browse files
ouoou欧弟
andauthored
fix: Spring 6.x.x NoSuchMethod getStatusCode (#110)
Co-authored-by: 欧弟 <[email protected]>
1 parent db7e36f commit 51d107c

File tree

1 file changed

+2
-2
lines changed
  • agent-plugins/agent-spring-plugins/agent-resttemplate-4.x-plugin/src/main/java/cloud/erda/agent/plugin/spring/resttemplate/sync

1 file changed

+2
-2
lines changed

agent-plugins/agent-spring-plugins/agent-resttemplate-4.x-plugin/src/main/java/cloud/erda/agent/plugin/spring/resttemplate/sync/RestResponseInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public Object afterMethod(IMethodInterceptContext context, Object ret) throws Th
5757
} else {
5858
transactionMetricBuilder.tag(PEER_SERVICE_SCOPE, PEER_SERVICE_EXTERNAL);
5959
}
60-
TransactionMetricUtils.handleStatusCode(transactionMetricBuilder, response.getStatusCode().value());
60+
TransactionMetricUtils.handleStatusCode(transactionMetricBuilder, response.getRawStatusCode());
6161
}
6262

6363
Scope scope = TracerManager.currentTracer().active();
64-
TracerUtils.handleStatusCode(scope, response.getStatusCode().value());
64+
TracerUtils.handleStatusCode(scope, response.getRawStatusCode());
6565
return ret;
6666
}
6767

0 commit comments

Comments
 (0)