I'm using ElasticSearch APM RUM in a React application.
Now, I already integrated the APM to the router, so that I can see the route-change
transactions in Kibana.
Now I want to track user clicks on a specific button, to see, for example, how many users click on it. (In the APM React docs, I can see only how to track on component, but here I need to track on click.)
My questions are:
- Do I need to create a Transaction or Span for that?
- How can I create this Transaction/Span manually, without wrapping a component for that?
This question helps but not answering my question, because according to the docs:
However, to avoid sending too many user-interaction transactions to the server, the agent discards transactions with no spans (e.g. no network activity)
And my case is a click that changing the UI.