inspectIT / inspectit-ocelot

inspectIT Ocelot - Java agent for collecting application performance, tracing and behavior data
http://www.inspectit.rocks/
Apache License 2.0
204 stars 69 forks source link

Extends the agent with a debug function to trace its action calls #1484

Closed mariusoe closed 2 years ago

mariusoe commented 2 years ago

This PR extends the agent by a debug functionallity to trace its aciton calls incl. the respective method hook. This can be used to debug configurations and to understand what the agent is acutally doing. The spans representing the action calls will include context information like action arguments, return values and information about the data context an action is executed in.

Jaeger_UI


This change is Reviewable

codecov[bot] commented 2 years ago

Codecov Report

Merging #1484 (96df1bf) into master (14c48b6) will decrease coverage by 0.57%. The diff coverage is 60.22%.

@@             Coverage Diff              @@
##             master    #1484      +/-   ##
============================================
- Coverage     79.20%   78.63%   -0.57%     
- Complexity     2250     2269      +19     
============================================
  Files           230      232       +2     
  Lines          7292     7426     +134     
  Branches        867      887      +20     
============================================
+ Hits           5775     5839      +64     
- Misses         1159     1220      +61     
- Partials        358      367       +9     
Impacted Files Coverage Δ
...inspectit/ocelot/config/model/InspectitConfig.java 100.00% <ø> (ø)
...rumentation/rules/InstrumentationRuleSettings.java 100.00% <ø> (ø)
.../actions/bound/ConstantOnlyBoundGenericAction.java 100.00% <ø> (ø)
...ation/actions/bound/DynamicBoundGenericAction.java 89.47% <ø> (ø)
...on/actions/template/VoidGenericActionTemplate.java 0.00% <ø> (ø)
...nstrumentation/hook/actions/TracingHookAction.java 0.00% <0.00%> (ø)
...core/instrumentation/hook/MethodHookGenerator.java 85.83% <44.44%> (-6.62%) :arrow_down:
...t/ocelot/core/instrumentation/hook/MethodHook.java 72.60% <50.00%> (-22.52%) :arrow_down:
...trumentation/actions/bound/BoundGenericAction.java 85.71% <80.00%> (-1.79%) :arrow_down:
...core/instrumentation/hook/ActionCallGenerator.java 95.00% <85.71%> (-5.00%) :arrow_down:
... and 9 more