Hello Everyone, I am using the otel agent on my java application and I can see the DB SQL on the tr...
d
Hello Everyone, I am using the otel agent on my java application and I can see the DB SQL on the trace requests but... there is a way to show the method from where the SQL is coming from?
s
The method is not captured automatically. You have to either manually instrument such methods.
d
https://opentelemetry.io/docs/languages/java/automatic/annotations/#creating-spans-around-methods-with-otelinstrumentationmethodsinclude tried the stuff on the link.... doenst seems to work.... the methods are still not appearing properly.
is there something different that I should look for?
s
If it didn't capture you might have configured it wrong.
d
$JAVA_OPTS -Dotel.instrumentation.methods.include="na.an.software.ssc.admin.negocio.AdminBaseFacadeImp[autenticar],na.an.software.ssc.admin.interfaces.IAdminBaseFacade[autenticar],org.jboss.ejb.client.EJBInvocationHandler[invoke],na.an.software.ssc.admin.negocio.usuario.UsuarioRN[recuperaUsuarioSimples,buscarUsuarioLdap]"
s
Can you use`;` for separator
separator b/w different classes
d
OH.... gosh... maybe this is the issue, gonna test RN... thanks for that...