Skip to content

zacscoding/web-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Web Trace !!

Check Methods by using javaagent ... working....

  • called stack
  • param & return values
  • exceptions (working)
  • excution time (working)

How to start

  1. add javaagent in vm arguments
-javaagent:...jarpath../tracer-agent.jar
  1. add agent config path
-Dtracer.config.path=..config path../webtracer-config.json
  1. config sample
{
  "class-proxies": [
    {
      // check class name
      "class-name": "com/zaccoding/controller/FrontController",
      // check class type [startsWith, endsWith, equals, contains]
      "invoke-type": "equals",
      // return class-name.invoke(origin-class-name);
      "is-invoker": true,
      "method-proxies": [
        {
          "method-name": "*",
          "invoke-type": "",
          "is-invoker": false,
          "display-param-and-return": true,
          "display-execution-time": true
        }
      ]
    }
  ]
}
  1. result
+--org/web/controller/FrontController::index()Ljava/lang/String;[0ms] : Test Web APP
|  +--org/web/service/AService::methodA(Ljava/lang/String;I)Ljava/lang/String;[0ms] : Test10
|   -- 1 : Test
|   -- 2 : 10
|  |  +--org/web/service/BService::methodB(Ljava/lang/String;I)Ljava/lang/String;[0ms] : Test10
|  |   -- 1 : Test
|  |   -- 2 : 10
|  |  |  +--org/web/service/CService::methodC(Ljava/lang/String;)Ljava/lang/String;[0ms] : Test
|  |  |   -- 1 : Test
|  |  |  +--org/web/service/DService::methodD(I)I[0ms] : 10
|  |  |   -- 1 : 10
|  +--org/web/service/EService::methodE()V[0ms] : void

ref

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published