Elastic AEM not showing full trace

The yellow highlighted portion is empty, it should be tracing other operation

Hi Team,

I am using AEM server to upload my system metric and visualize it in Kibana, I used few annotation like @CaptureSpan and @CaptureTransaction

My use case is i need to save the details to DB and if persistence is successful send an email via SMTP email server. My code looks like below:

Controller:

Service:

DAO:

The @CaptureTransaction is working as expected but the span in service is not working it's only capturing RDBMS related information and not the latency of sending mail, how can i include that trace as well

@felixbarny @Brandon_Kobel

1 Like

Thanks for the question.
Actually, based on the code and screenshot, it seems that neither annotation is working and what you get is based on the automatic tracing of Spring MVC and JDBC.
Try removing your annotations and see if you get the same.
If so, you need to remove the @CaptureTransaction annotation and figure out why you don't get your service's shareFiles span. Maybe your application_packages config is not set properly.
In any case, once you get it to work, you can add a @CaptureSpan annotation to the sendEmail method to get a better visibility.
I hope this helps.

1 Like

Hi @Eyal_Koren the things actually got resolved the same day itself but due to some work couldn't reply over here, I wasthinkingthe package scan actually allows * if we scan any package like com.es.monitoring.*, but it actually wont recognized, so I removed it and everything is working as expected.

But separate task is not being recognized

 @CaptureTransaction (type = Task)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.