Java APM has no spans


(Mrk) #1

hi i have setup JavaAPM in my kibana ui , i am not able to see any transactions error :
"No spans available for this transaction. "
i do get response times and request per minute .


(Eyal Koren) #2

Hi and thanks for trying out our APM solution.
What type of spans are you expecting that correspond technologies/frameworks listed in our supported technologies page?


(Mrk) #3

hi,
Spring Boot

1.5+, 2.x


(Eyal Koren) #4

Those are why you see transactions. Which spans do you expect?
Spans represent events of special interest like querying a DB or making a remote call. Alternatively, you can create custom spans to trace anything you want in your code using the public API, and soon also third party code.


(Mrk) #5

i think custom spans is what i needed. Thanks for this .


(Mrk) #6

HI ,
i have a question i am getting traces for api's but the trace is not divided into the individual steps it only shows a single line on clicking i get to see the line numbers of the java code that got executed , how can i set split of the trace as it travels through the code ?
TIA


(Eyal Koren) #7

Please follow carefully the explanations and instructions in the API documentation. It is very important to understand the lifecycles of Transactions and Spans in order to get them with the right relationships.
Few guidelines:

  • Make sure a Transaction is created and activated at the beginning of a trace you want to record and ended when the request handling is over.
  • Make sure you use the right API to create a Span as a child of its parent span/transaction and activate/deactivate it
  • If suits your needs, try using the annotation API as it removes some of the heavy lifting of lifecycle and activation/deactivation

If you spend some time understanding this and it still doesn't work, please attach a screenshot to accompany your explanations.

Thanks and good luck.