4 ms·
As with all things, it is a tool to be used wisely, and refrain from seeing everything as a nail when you have this hammer. It is notably extremely useful as a
by lloeki 3y ago
As with all things, it is a tool to be used wisely, and refrain from seeing everything as a nail when you have this hammer.
It is notably extremely useful as a concept for instrumenting software, which is exactly what e.g APMs are doing. ASMs can go a step further and not just gather information but take action (sanitising arguments or return values, or even interrupting calls)
(disclaimer: I used to work at Sqreen, now work at Datadog)
Short of having first class support for AOP we're left implementing our own solutions to hook and instrument on various languages.
Some examples:
https://github.com/DataDog/datadog-instrumentation-gateway-ruby https://github.com/DataDog/datadog-instrumentation-gateway-r...
https://github.com/sqreen/go-agent/blob/master/doc/instrumentation.md https://github.com/sqreen/go-agent/blob/master/doc/instrumen...