Custom transcation can not see its span

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight_smile:

Kibana version:
7.7
Elasticsearch version:
7.7
APM Server version:
7.7
APM Agent language and version:
JAVA 8

co.elastic.apm
apm-agent-api
1.14.0

Browser version:
chrome

I custom a transcation named KAFKA , I use the AOP around to capture the method ,
the method has some database operation
Now I can see the transcation on the kibana,
but It does not show its span
forexample the db span.

Maybe you forgot to activate() the transaction?

thank you for your support ,you are right

I have an another question . the default transication is the http request, the default span is the sql, If I set the sql operation as transication by the api, can the http transcation and the sql transcation related correctly ?

I'm not sure I get your question. A SQL operation cannot be a transaction. The transaction is the first span (aka entry point) in your service. If you activate your custom transaction, the built-in JDBC instrumentation can add a JDBC span as the child of your custom transaction.

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