I am capturing the custom spans for a transaction and storing it in 'Transaction.custom'.
I am using "Thread.getAllStackTraces()" inside "beforeEnd()" function in "co.elastic.apm.agent.impl.transaction.Transaction.java". But in this case some of my spans inside the transactions are not being captured.
In a naïve language, I can say that all classes are not being captured with this.
Please help me I this regard, as I want to capture all the classes for the particular transaction.
Kibana version: 8.5.1
Elasticsearch version: 8.5.1
APM Server version: 8.5.1
APM Agent language and version: Java and 1.x.x