You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start a transaction when a message enters the route
stop the transaction when a message exits the route.
The problem is that routes are build using a DSL (http://camel.apache.org/java-dsl.html) and there is no specific class/method for the route being built, and I see no way to instrument that route using AOP.
Is there a way to completely bypass the AOP approach and to manually
start a new transaction at some point
stop at a later point (same thread! :)
Pseudo-code:
from("file:src/data?noop=true")
.process(() -> {/* Start transaction here ? */})
// Content of the route here...// ...
.process(() -> {/* Stop transaction here ? */})
.to("file:target/messages/uk")
The text was updated successfully, but these errors were encountered:
Hi @bourretp, thanks for posting! My concern about having separate start/stop is that you have to be really sure that stop gets called, otherwise abandoned trace could cause memory leak. Instead, if they are being called by the same thread, I try to instrument the caller of both of the methods. I took a look at Apache Camel, and created a (starter) plugin that I think(?) accomplishes what you are looking for. This is available now in the latest snapshot release glowroot-agent-0.13.1-SNAPSHOT-dist.zip.
Hi,
I try to instrument Apache Camel routers so I can
The problem is that routes are build using a DSL (http://camel.apache.org/java-dsl.html) and there is no specific class/method for the route being built, and I see no way to instrument that route using AOP.
Is there a way to completely bypass the AOP approach and to manually
Pseudo-code:
The text was updated successfully, but these errors were encountered: