Scala weaving Intellij

Good evening,

Is there any possible way how I can weave concepts in Scala code, during compilation, or during load-time please ?

I have source code and I am monitoring it. For a function to be read by the monitor some type of function call or message to the monitor should be given. I would like to try that via weaving. Is there a way for example :

Source code :
ping ! “hello”

When weaved/manipulated :
sendMonitor(“send Received”)
ping ! “hello”

Thanks a lot and good day :slight_smile: