This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 22f54dc [type: modify]: modify shenyu_request_undone metrics' access.
(#2993)
22f54dc is described below
commit 22f54dc009ba5b386c701a8a43f5fd64343d733e
Author: YuI <[email protected]>
AuthorDate: Sun Mar 6 22:41:39 2022 +0800
[type: modify]: modify shenyu_request_undone metrics' access. (#2993)
Co-authored-by: 艺铭 <[email protected]>
---
.../plugin/metrics/prometheus/handler/PrometheusGlobalPluginHandler.java | 1 -
1 file changed, 1 deletion(-)
diff --git
a/shenyu-agent/shenyu-agent-plugins/shenyu-agent-plugin-metrics/shenyu-agent-plugin-metrics-prometheus/src/main/java/org/apache/shenyu/agent/plugin/metrics/prometheus/handler/PrometheusGlobalPluginHandler.java
b/shenyu-agent/shenyu-agent-plugins/shenyu-agent-plugin-metrics/shenyu-agent-plugin-metrics-prometheus/src/main/java/org/apache/shenyu/agent/plugin/metrics/prometheus/handler/PrometheusGlobalPluginHandler.java
index e69c15d..a74f6d9 100644
---
a/shenyu-agent/shenyu-agent-plugins/shenyu-agent-plugin-metrics/shenyu-agent-plugin-metrics-prometheus/src/main/java/org/apache/shenyu/agent/plugin/metrics/prometheus/handler/PrometheusGlobalPluginHandler.java
+++
b/shenyu-agent/shenyu-agent-plugins/shenyu-agent-plugin-metrics/shenyu-agent-plugin-metrics-prometheus/src/main/java/org/apache/shenyu/agent/plugin/metrics/prometheus/handler/PrometheusGlobalPluginHandler.java
@@ -65,7 +65,6 @@ public final class PrometheusGlobalPluginHandler implements
InstanceMethodHandle
@Override
public void onThrowing(final TargetObject target, final Method method,
final Object[] args, final Throwable throwable) {
MetricsRecorderPool.get(MetricsConstant.REQUEST_THROW_TOTAL,
MetricsConstant.PROMETHEUS).ifPresent(MetricsRecorder::inc);
- MetricsRecorderPool.get(MetricsConstant.REQUEST_UNDONE,
MetricsConstant.PROMETHEUS).ifPresent(MetricsRecorder::dec);
}
}