Rupinder Singh
Rupinder Singh
The following code doesnt work in 0.33 from the examples tracer.extract(Format.Builtin.HTTP_HEADERS, new TextMapExtractAdapter(headers)); This is because TextMapExtractAdapter no longer implements TextMap in 0.33. So what is the alternate code in...
I have an API that returns a body that corresponds to a JSON Schema, The JSON schema structure is included in the API spec file. But when I try to...
I have a method with some complex logic. Deep in the code there is an operation on a field value that I would like to change. I thought of implementing...
I have a simple setup of instrumenting a method that is working perfectly. ``` @Retention(RetentionPolicy.RUNTIME) public @interface PackageName { } @Retention(RetentionPolicy.RUNTIME) public @interface ClassName { } @Retention(RetentionPolicy.RUNTIME) public @interface EntryMethod...
I have a class with two similar methods but with a different set of arguments. For example these are two methods: ``` public static void sendMessage(String id, String message) public...
I have a listener registered as under but it never get invoked. The classes are being transformed fine but the listener methods are not working. What am I missing ?...
I have a method like: ``` public void checkName(String name) { //Some code here } ``` I would like to instrument this as under: ``` File file = Utils.getTempFile(); try...
I have migrated from ASM to ByteBuddy and have been able to replace by ClassFileTransformer to use Advice instead. In my old code, I used to be able to add...
I have some code developed with Java 8 that uses reflection to call a private method in URLClassLoader. Unfortunately, this isnt possible in Java 17 so the application stops working...
When the Log4j `LogEvent `context data contains non string values e.g string arrays or java maps, the resulting attributes are incorrect. Create a class extending `ObjectThreadContextMap` and set it as...