diff --git a/sermant-agentcore/sermant-agentcore-config/config/plugins.yaml b/sermant-agentcore/sermant-agentcore-config/config/plugins.yaml
index 3dc499bbe2..f5b3e710f1 100644
--- a/sermant-agentcore/sermant-agentcore-config/config/plugins.yaml
+++ b/sermant-agentcore/sermant-agentcore-config/config/plugins.yaml
@@ -14,7 +14,7 @@ plugins:
# agentmain启动时生效,配置支持动态安装插件,active类型插件将会主动启用, passive类型插件需通过指令或接口调用启用,允许卸载
dynamicPlugins:
active:
- - jsse
+ - metrics
# - active-plugin
passive:
# - passive-plugin
diff --git a/sermant-plugins/pom.xml b/sermant-plugins/pom.xml
index 043b177688..aff240f7b8 100644
--- a/sermant-plugins/pom.xml
+++ b/sermant-plugins/pom.xml
@@ -42,7 +42,7 @@
sermant-service-removal
sermant-spring-beans-deal
sermant-tag-transmission
- sermant-jsse
+ sermant-metrics
@@ -75,7 +75,7 @@
sermant-service-removal
sermant-spring-beans-deal
sermant-tag-transmission
- sermant-jsse
+ sermant-metrics
@@ -108,7 +108,7 @@
sermant-service-removal
sermant-spring-beans-deal
sermant-tag-transmission
- sermant-jsse
+ sermant-metrics
diff --git a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/alibaba/HandlerDeclarer.java b/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/alibaba/HandlerDeclarer.java
deleted file mode 100644
index 97b227faab..0000000000
--- a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/alibaba/HandlerDeclarer.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.huawei.jsse.declarer.alibaba;
-
-import com.huawei.jsse.declarer.AbstractDeclarer;
-import com.huawei.jsse.interceptor.alibaba.HandlerInterceptor;
-
-import com.huaweicloud.sermant.core.plugin.agent.declarer.InterceptDeclarer;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.ClassMatcher;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.MethodMatcher;
-
-/**
- * dubbo服务处理增强声明
- *
- * @author zhp
- * @since 2023-10-17
- */
-public class HandlerDeclarer extends AbstractDeclarer {
- private static final String ENHANCE_CLASS =
- "com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler";
-
- private static final String METHODS_NAME = "handleRequest";
-
- @Override
- public ClassMatcher getClassMatcher() {
- return ClassMatcher.nameEquals(ENHANCE_CLASS);
- }
-
- @Override
- public InterceptDeclarer[] getInterceptDeclarers(ClassLoader classLoader) {
- return new InterceptDeclarer[]{InterceptDeclarer.build(MethodMatcher.nameEquals(METHODS_NAME),
- new HandlerInterceptor())};
- }
-}
diff --git a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/alibaba/InvokeDeclarer.java b/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/alibaba/InvokeDeclarer.java
deleted file mode 100644
index 6ce164d6ff..0000000000
--- a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/alibaba/InvokeDeclarer.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.huawei.jsse.declarer.alibaba;
-
-import com.huawei.jsse.declarer.AbstractDeclarer;
-import com.huawei.jsse.interceptor.alibaba.InvokeInterceptor;
-
-import com.huaweicloud.sermant.core.plugin.agent.declarer.InterceptDeclarer;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.ClassMatcher;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.MethodMatcher;
-
-/**
- * dubbo调用增强声明
- *
- * @author zhp
- * @since 2023-10-17
- */
-public class InvokeDeclarer extends AbstractDeclarer {
- private static final String ENHANCE_CLASS = "com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker";
-
- private static final String METHODS_NAME = "doInvoke";
-
- @Override
- public ClassMatcher getClassMatcher() {
- return ClassMatcher.nameEquals(ENHANCE_CLASS);
- }
-
- @Override
- public InterceptDeclarer[] getInterceptDeclarers(ClassLoader classLoader) {
- return new InterceptDeclarer[]{InterceptDeclarer.build(MethodMatcher.nameEquals(METHODS_NAME),
- new InvokeInterceptor())};
- }
-}
diff --git a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/apache/HandlerDeclarer.java b/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/apache/HandlerDeclarer.java
deleted file mode 100644
index a6a2ead3d2..0000000000
--- a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/apache/HandlerDeclarer.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.huawei.jsse.declarer.apache;
-
-import com.huawei.jsse.declarer.AbstractDeclarer;
-import com.huawei.jsse.interceptor.apache.HandlerInterceptor;
-
-import com.huaweicloud.sermant.core.plugin.agent.declarer.InterceptDeclarer;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.ClassMatcher;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.MethodMatcher;
-
-/**
- * dubbo服务处理增强声明
- *
- * @author zhp
- * @since 2023-10-17
- */
-public class HandlerDeclarer extends AbstractDeclarer {
- private static final String ENHANCE_CLASS =
- "org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler";
-
- private static final String METHODS_NAME = "handleRequest";
-
- @Override
- public ClassMatcher getClassMatcher() {
- return ClassMatcher.nameEquals(ENHANCE_CLASS);
- }
-
- @Override
- public InterceptDeclarer[] getInterceptDeclarers(ClassLoader classLoader) {
- return new InterceptDeclarer[]{InterceptDeclarer.build(MethodMatcher.nameEquals(METHODS_NAME),
- new HandlerInterceptor())};
- }
-}
diff --git a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/apache/InvokeDeclarer.java b/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/apache/InvokeDeclarer.java
deleted file mode 100644
index ff853f0c8d..0000000000
--- a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/declarer/apache/InvokeDeclarer.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.huawei.jsse.declarer.apache;
-
-import com.huawei.jsse.declarer.AbstractDeclarer;
-import com.huawei.jsse.interceptor.apache.InvokeInterceptor;
-
-import com.huaweicloud.sermant.core.plugin.agent.declarer.InterceptDeclarer;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.ClassMatcher;
-import com.huaweicloud.sermant.core.plugin.agent.matcher.MethodMatcher;
-
-/**
- * dubbo调用增强声明
- *
- * @author zhp
- * @since 2023-10-17
- */
-public class InvokeDeclarer extends AbstractDeclarer {
- private static final String ENHANCE_CLASS = "org.apache.dubbo.rpc.protocol.dubbo.DubboInvoker";
-
- private static final String METHODS_NAME = "doInvoke";
-
- @Override
- public ClassMatcher getClassMatcher() {
- return ClassMatcher.nameEquals(ENHANCE_CLASS);
- }
-
- @Override
- public InterceptDeclarer[] getInterceptDeclarers(ClassLoader classLoader) {
- return new InterceptDeclarer[]{InterceptDeclarer.build(MethodMatcher.nameEquals(METHODS_NAME),
- new InvokeInterceptor())};
- }
-}
diff --git a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/CodecInterceptor.java b/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/CodecInterceptor.java
deleted file mode 100644
index cb73a83877..0000000000
--- a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/CodecInterceptor.java
+++ /dev/null
@@ -1,143 +0,0 @@
-/*
- * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.huawei.jsse.interceptor.alibaba;
-
-import com.huawei.jsse.common.Constants;
-import com.huawei.jsse.entity.JsseLinkInfo;
-import com.huawei.jsse.manager.JsseManager;
-
-import com.huaweicloud.sermant.core.plugin.agent.entity.ExecuteContext;
-import com.huaweicloud.sermant.core.plugin.agent.interceptor.Interceptor;
-import com.huaweicloud.sermant.core.utils.StringUtils;
-
-import com.alibaba.dubbo.common.URL;
-import com.alibaba.dubbo.common.utils.NetUtils;
-import com.alibaba.dubbo.remoting.Channel;
-import com.alibaba.dubbo.remoting.buffer.ChannelBuffer;
-
-import java.net.InetSocketAddress;
-
-/**
- * dubbo报文加解码拦截器
- *
- * @author zhp
- * @since 2023-10-17
- */
-public class CodecInterceptor implements Interceptor {
- private static final int PARAM_COUNT = 2;
-
- private static final String TCP_PROTOCOL = "dubbo,rmi,http,https";
-
- private static final String ENCODE_METHOD_NAME = "encode";
-
- private int writeIndex;
-
- private int readIndex;
-
- private String key;
-
- @Override
- public ExecuteContext before(ExecuteContext context) {
- Object[] arguments = context.getArguments();
- if (arguments == null || arguments.length < PARAM_COUNT
- || !(arguments[0] instanceof Channel && arguments[1] instanceof ChannelBuffer)) {
- return context;
- }
- Channel channel = (Channel) arguments[0];
- ChannelBuffer buffer = (ChannelBuffer) arguments[1];
- InetSocketAddress localAddress = channel.getLocalAddress();
- InetSocketAddress remoteAddress = channel.getRemoteAddress();
- key = localAddress.getHostName() + Constants.CONNECT + remoteAddress.getAddress();
- JsseLinkInfo jsseLinkInfo = JsseManager.getJsseLink(key);
- if (StringUtils.isEmpty(jsseLinkInfo.getClientIp())) {
- initJsseLinkInfo(jsseLinkInfo, channel);
- }
- writeIndex = buffer.writerIndex();
- readIndex = buffer.readerIndex();
- return context;
- }
-
- @Override
- public ExecuteContext after(ExecuteContext context) {
- Object[] arguments = context.getArguments();
- if (arguments == null || arguments.length < PARAM_COUNT
- || !(arguments[0] instanceof Channel && arguments[1] instanceof ChannelBuffer)) {
- return context;
- }
- ChannelBuffer buffer = (ChannelBuffer) arguments[1];
- JsseLinkInfo jsseLinkInfo = JsseManager.getJsseLink(key);
- if (StringUtils.equals(context.getMethod().getName(), ENCODE_METHOD_NAME)) {
- jsseLinkInfo.getSentBytes().addAndGet(buffer.writerIndex() - writeIndex);
- jsseLinkInfo.getSentMessages().incrementAndGet();
- return context;
- }
- if (buffer.readerIndex() - readIndex > 0) {
- jsseLinkInfo.getReceiveBytes().addAndGet(buffer.readerIndex() - readIndex);
- jsseLinkInfo.getReceiveMessages().incrementAndGet();
- }
- return context;
- }
-
- @Override
- public ExecuteContext onThrow(ExecuteContext context) {
- return context;
- }
-
- /**
- * 初始化jsse连接信息
- *
- * @param jsseLinkInfo 连接信息
- * @param channel 渠道信息
- */
- private void initJsseLinkInfo(JsseLinkInfo jsseLinkInfo, Channel channel) {
- jsseLinkInfo.setClientIp(channel.getLocalAddress().getHostName());
- jsseLinkInfo.setServerIp(channel.getRemoteAddress().getHostName());
- jsseLinkInfo.setServerPort(StringUtils.getString(channel.getRemoteAddress().getPort()));
- jsseLinkInfo.setProtocol(channel.getUrl().getProtocol());
- if (isClientSide(channel)) {
- jsseLinkInfo.setL7Role(Constants.CLIENT_ROLE);
- } else {
- jsseLinkInfo.setL7Role(Constants.SERVER_ROLE);
- }
- if (TCP_PROTOCOL.contains(jsseLinkInfo.getProtocol())) {
- jsseLinkInfo.setL4Role(Constants.TCP_PROTOCOL + Constants.CONNECT + jsseLinkInfo.getL7Role());
- } else {
- jsseLinkInfo.setL4Role(Constants.UDP_PROTOCOL + Constants.CONNECT + jsseLinkInfo.getL7Role());
- }
- jsseLinkInfo.setEnableSsl(Boolean.parseBoolean(channel.getUrl().getParameter(Constants.SSL_ENABLE)));
- }
-
- /**
- * 是否为客户端
- *
- * @param channel 渠道信息
- * @return 是否为客户端的结果
- */
- private boolean isClientSide(Channel channel) {
- String side = (String) channel.getAttribute(com.alibaba.dubbo.common.Constants.SIDE_KEY);
- if (Constants.CLIENT_ROLE.equals(side)) {
- return true;
- }
- if (Constants.SERVER_ROLE.equals(side)) {
- return false;
- }
- InetSocketAddress address = channel.getRemoteAddress();
- URL url = channel.getUrl();
- return url.getPort() == address.getPort() && NetUtils.filterLocalHost(url.getIp())
- .equals(NetUtils.filterLocalHost(address.getAddress().getHostAddress()));
- }
-}
diff --git a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/HandlerInterceptor.java b/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/HandlerInterceptor.java
deleted file mode 100644
index 409d19aafe..0000000000
--- a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/HandlerInterceptor.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.huawei.jsse.interceptor.alibaba;
-
-import com.huawei.jsse.common.Constants;
-import com.huawei.jsse.entity.JsseRpcInfo;
-import com.huawei.jsse.manager.JsseManager;
-
-import com.huaweicloud.sermant.core.plugin.agent.entity.ExecuteContext;
-import com.huaweicloud.sermant.core.plugin.agent.interceptor.Interceptor;
-import com.huaweicloud.sermant.core.utils.StringUtils;
-
-import com.alibaba.dubbo.common.URL;
-import com.alibaba.dubbo.common.utils.NetUtils;
-import com.alibaba.dubbo.remoting.Channel;
-import com.alibaba.dubbo.remoting.exchange.ExchangeChannel;
-
-import java.net.InetSocketAddress;
-
-/**
- * dubbo请求处理拦截器
- *
- * @author zhp
- * @since 2023-10-17
- */
-public class HandlerInterceptor implements Interceptor {
- private long startTime;
-
- private String key;
-
- @Override
- public ExecuteContext before(ExecuteContext context) {
- if (context.getArguments() == null || !(context.getArguments()[0] instanceof ExchangeChannel)) {
- return context;
- }
- startTime = System.currentTimeMillis();
- ExchangeChannel channel = (ExchangeChannel) context.getArguments()[0];
- JsseRpcInfo jsseRpcInfo = initJsseRpcInfo(channel);
- jsseRpcInfo.getReqCount().incrementAndGet();
- return context;
- }
-
- @Override
- public ExecuteContext after(ExecuteContext context) {
- JsseRpcInfo jsseRpcInfo = JsseManager.getJsseRpc(key);
- jsseRpcInfo.getResponseCount().incrementAndGet();
- long latency = System.currentTimeMillis() - startTime;
- jsseRpcInfo.getSumLatency().addAndGet(latency);
- jsseRpcInfo.getLatencyList().add(latency);
- return context;
- }
-
- @Override
- public ExecuteContext onThrow(ExecuteContext context) {
- JsseRpcInfo jsseRpcInfo = JsseManager.getJsseRpc(key);
- jsseRpcInfo.getReqErrorCount().incrementAndGet();
- return context;
- }
-
- /**
- * 初始化jsse调用信息
- *
- * @param channel 渠道信息
- * @return 调用信息
- */
- private JsseRpcInfo initJsseRpcInfo(Channel channel) {
- InetSocketAddress localAddress = channel.getLocalAddress();
- InetSocketAddress remoteAddress = channel.getRemoteAddress();
- key = localAddress.getHostName() + Constants.CONNECT + remoteAddress.getAddress();
- JsseRpcInfo jsseRpcInfo = JsseManager.getJsseRpc(key);
- if (StringUtils.isEmpty(jsseRpcInfo.getClientIp())) {
- jsseRpcInfo.setClientIp(channel.getLocalAddress().getHostName());
- jsseRpcInfo.setServerIp(channel.getRemoteAddress().getHostName());
- jsseRpcInfo.setServerPort(StringUtils.getString(channel.getRemoteAddress().getPort()));
- jsseRpcInfo.setProtocol(channel.getUrl().getProtocol());
- if (isClientSide(channel)) {
- jsseRpcInfo.setL7Role(Constants.CLIENT_ROLE);
- } else {
- jsseRpcInfo.setL7Role(Constants.SERVER_ROLE);
- }
- if (Constants.TCP_PROTOCOLS.contains(jsseRpcInfo.getProtocol())) {
- jsseRpcInfo.setL4Role(Constants.TCP_PROTOCOL + Constants.CONNECT + jsseRpcInfo.getL7Role());
- } else {
- jsseRpcInfo.setL4Role(Constants.UDP_PROTOCOL + Constants.CONNECT + jsseRpcInfo.getL7Role());
- }
- jsseRpcInfo.setEnableSsl(Boolean.parseBoolean(channel.getUrl().getParameter(Constants.SSL_ENABLE)));
- }
- return jsseRpcInfo;
- }
-
- /**
- * 是否为客户端
- *
- * @param channel 渠道信息
- * @return 是否为客户端的结果
- */
- private boolean isClientSide(Channel channel) {
- String side = (String) channel.getAttribute(com.alibaba.dubbo.common.Constants.SIDE_KEY);
- if (Constants.CLIENT_ROLE.equals(side)) {
- return true;
- } else if (Constants.SERVER_ROLE.equals(side)) {
- return false;
- } else {
- InetSocketAddress address = channel.getRemoteAddress();
- URL url = channel.getUrl();
- return url.getPort() == address.getPort() && NetUtils.filterLocalHost(url.getIp())
- .equals(NetUtils.filterLocalHost(address.getAddress().getHostAddress()));
- }
- }
-}
diff --git a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/InvokeInterceptor.java b/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/InvokeInterceptor.java
deleted file mode 100644
index 9cba7b8b76..0000000000
--- a/sermant-plugins/sermant-jsse/jsse-plugin/src/main/java/com/huawei/jsse/interceptor/alibaba/InvokeInterceptor.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Copyright (C) 2023-2023 Huawei Technologies Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.huawei.jsse.interceptor.alibaba;
-
-import com.huawei.jsse.common.Constants;
-import com.huawei.jsse.entity.JsseRpcInfo;
-import com.huawei.jsse.manager.JsseManager;
-
-import com.huaweicloud.sermant.core.plugin.agent.entity.ExecuteContext;
-import com.huaweicloud.sermant.core.plugin.agent.interceptor.Interceptor;
-import com.huaweicloud.sermant.core.utils.ReflectUtils;
-import com.huaweicloud.sermant.core.utils.StringUtils;
-
-import com.alibaba.dubbo.common.URL;
-import com.alibaba.dubbo.common.utils.AtomicPositiveInteger;
-import com.alibaba.dubbo.common.utils.NetUtils;
-import com.alibaba.dubbo.remoting.Channel;
-import com.alibaba.dubbo.remoting.exchange.ExchangeClient;
-
-import java.net.InetSocketAddress;
-import java.util.Optional;
-
-/**
- * dubbo服务调用拦截器
- *
- * @author zhp
- * @since 2023-10-17
- */
-public class InvokeInterceptor implements Interceptor {
- private long startTime;
-
- private String key;
-
- @Override
- public ExecuteContext before(ExecuteContext context) {
- Optional