Hi There,
I was trying with public API of APM to get response for my custom class but I don't see any such information on Kibana or instrumentation details on APM java agent log.
Not sure what I am doing wrong. I had tried with @CaptureTransaction .
In this method I am intentionally throwing a null pointer exception to see it in Kibana.
@Override
public String getTestName() {
Transaction transaction = ElasticApm.startTransaction();
String a=null;
try(final Scope scope = transaction.activate())
{
transaction.setName("CustomUserBOPreferencesExtensionImpl#TestName");
transaction.setType(Transaction.TYPE_REQUEST);
return a.toString();
}
catch (Exception e) {
transaction.captureException(e);
throw e;
} finally {
transaction.end();
}
}