elastic / apm-agent-rum-js

https://www.elastic.co/guide/en/apm/agent/rum-js/current/index.html
MIT License
278 stars 133 forks source link

User event prevents http request transaction from starting #1495

Closed MiloszPapierz closed 4 months ago

MiloszPapierz commented 4 months ago

When there is a fetch request on button click the apm agent starts a transaction of type user-interaction. When the button clicks starts an HTTP requests the request is added as span to the user-interaction transaction instead of starting a new transaction of type http-request. I could disable automatic user-interaction instrumentation but I was wondering why it acts like that. This request won't be included in the http-request overview in Kibana and could give a wrong view, not?

devcorpio commented 4 months ago

Hi @MiloszPapierz,

The behaviour you described is intended. Please see this post for more details

TL;DR:

http requests = fetch, xhr

Cheers, Alberto