I'm trying to test the Annotation API on a Spring application but I get a compile-time error "cannot find symbol" related to the annotations for both @CaptureScan() and @CaptureTransaction().
I've already configured application_packages and am using agent version 1.0.0.
Without the annotations, the other public APIs (like createSpan(), addTag(), etc) work perfectly, able to create child spans and propagate across in the methods they are embedded in.
As I couldn't find any example annotations use nor more in-depth documentation on this, I'm wondering if I am missing other dependencies or configuration settings.
When we are using @CaptureSpan, we notice that each child span graph extends all the way to the end of the transaction, even if we explicitly call end() for each annotated method.
If we are using ElasticApm.createSpan() from the parent span, each method we have a trace on correctly captures the span graph as a waterfall diagram.
Calling end on the span created with @CaptureSpan is not supported and leads to undefined behavior. You could create three different methods like this:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.