unloggedio / unlogged-sdk

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

Problem serialising Mono<Double> / Mono<Float> #60

Open kingkong-AI opened 3 months ago

kingkong-AI commented 3 months ago

Describe the bug

When using Double and Float data types in a a Webflux project, the sdk fails to properly serialize them and hence gives wrong outputs on direct invoke. image

Reproduction steps

  1. Run the project with unlogged sdk and plugin.
  2. Go to VarKeywordController.java class in unlogged-spring-webflux-maven-demo.
  3. Direct invoke the controllers getDoubleVar() and getFloatVar().
  4. You will receive very large numbers as output as shown in the image.

Expected behavior

Correct outputs should be visible. If in getFloatVar(float n), the input is 1, the output should be 10.0 Similarly for getDoubleVar.

Additional context

No response