unloggedio / unlogged-sdk

Unlogged SDK for recording code execution
https://unlogged.io
Apache License 2.0
152 stars 16 forks source link

Class does not have dual methods with frequency logging build #65

Closed kartikeytewari-ul closed 1 week ago

kartikeytewari-ul commented 3 weeks ago

Describe the bug

Project: unlogged-spring-gradle-demo Class: ReferralUtils

When building the project with frequency logging build of SDK the class does not have dual methods. Instead the decompiled class only have a single probed method. This causes the methods in class to be always probed.

Reproduction steps

  1. Run the process with frequency_logging SDK build and latest plugin with some set counter.
  2. Direct Invoke a method in ReferralUtils many times
  3. It will show up all the time in live window.

Expected behavior

The method should be seen only a few times based on the set counter of the process.

Additional context

This can be also verified by looking at the decompiled class.

kartikeytewari-ul commented 2 weeks ago

Root Cause Analysis

kartikeytewari-ul commented 2 weeks ago

This is fixed with SDK v0.6.101 video demo

TheAmg commented 1 week ago

Static methods will now generate candidates correctly based on counter specified. (With the exception of #83).

Closing the issue.