- open this link
- chrome devtools => Network
- when the
App
component is mounted, it will send a request viafetch
, which will get response after 5 seconds - you will see
onLoad
event was fired before thefetch
request finished - however, the
/intake/v2/rum/events
from apm-rum will wait until thefetch
request finished - take a look at the payload, the value of
transaction.duration
is the time that thefetch
ends, rather than the time ofonLoad
.