Is there any way to get the transaction.id of the current transaction agent side ? (I specify a name for the transactions using apm.setTransactionName('myName))
The idea is to add the transaction.id to the logfiles so a specific transaction identified in the logfiles can be easily found in kibana.
You should use apm.currentTransaction, so you don't go through the private _instrumentation property:
apm.currentTransaction.id
I just realized that we haven't documented the id property in the transaction documentation (we should do that), but you shouldn't expect the ID to be of a specific format, as we might change that soon. But it will remain a string.
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.