How to instrument java.net.Socket? #10007
-
I have a requirement to create spans for the java.net.Socket calls to the backend from a Spring REST API. I tried to create an extension for this. I have creates the InstrumentationModule, Instrumentation and IgnoredTypesConfigurer.
I build this using maven abd create the jar. I am instrumenting my Spring REST API application using the javaagent and this extension.
I could see the logs that prints the log messages in the extension I created.
But the OnMethodEnter and OnMethodExit advices are not called. I don't see the logs which were inside these methods. My expectation was that calls to any method in java.net.Socket classes should result in creating the span. Am I missing anything? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Can you share your git repo? |
Beta Was this translation helpful? Give feedback.
-
The problem has been solved #10008 |
Beta Was this translation helpful? Give feedback.
The problem has been solved #10008