1 Star 0 Fork 3

重阳的小马 / task-tool接口调用统计工具

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
readmeEn.md 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
chenjh 提交于 2023-05-05 21:11 . getServletCompute class load 异常处理

task-tool spring interface calls statistics tool

Count the execution times, time, recent errors, and maximum execution time of interface methods in the service to see the execution of each method that needs to be monitored, so as to quickly find performance problems.

Features

  • Support springboot, springmvc
  • The statistical information includes (the number of calls, the most recent call time, the longest execution time (execution time, occurrence time, corresponding ID) abnormal error (the number of times, the most recent occurrence time, the corresponding ID))
  • Support statistics related information by minutes, hours, days and other dimensions.
  • Support the statistics of the number of times of usage of the uri interface (the number of calls of each source can be calculated separately)
  • Support the statistics of the number of internal calls of sping, the source is empty by default
  • Support the number of scheduler tasks statistics
  • Support consumption statistics of mq
  • Support to check the execution information of each interface

Quick Start

http://localhost:8080/index.html
http://task-tool-demo.opendfl.org.cn/index.html

Use

  • 1,import maven dependency packages

<dependency>
    <groupId>cn.org.opendfl</groupId>
    <artifactId>task-tool</artifactId>
    <version>2.1</version>
</dependency>
  • 2,Add the @TaskCompute annotation to the method to be counted

@Service
public class TaskTestBiz implements ITaskTestBiz {
    @TaskCompute
    @Override
    public String hello(String name) {
        try {
            Thread.sleep(4000L);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return "hello " + name;
    }
}
  • 3,View the result after the interface is called

http://localhost:8080/taskInfo/runInfo?key=tasktooltest
http://localhost:8080/pages/runInfo.html

  • 4,View configuration information

http://localhost:8080/taskInfo/config?key=tasktooltest

Java
1
https://gitee.com/renith/task-tool.git
git@gitee.com:renith/task-tool.git
renith
task-tool
task-tool接口调用统计工具
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891