Hi
Is it possible to make the RUM agent use the id property, instead of the name property?
Hi
Is it possible to make the RUM agent use the id property, instead of the name property?
I'm assuming you meant using the attribute id
instead of the name
attribute to compute the transaction name when the user clicks on a button. If not please expand your question to give more contexts if my assumption is wrong.
To give a transaction name when a element is clicked the RUM agent seeks for
data-transaction-name
in the target element or one of its ancestorsname
in the target elementSo you may use data-transaction-name
as a place to add the name you want for your transaction.
Ref: Supported Technologies | APM Real User Monitoring JavaScript Agent Reference [5.x] | Elastic
Cheers,
David
© 2020. All Rights Reserved - Elasticsearch
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.