question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

patchEventTarget doubles events (under special conditions)

See original GitHub issue

When we deploy apm-agent-rum-js to our (pretty large) e-commerce website, we are losing some click events.

overwriting the native prototype window.EventTarget.prototype or wrapping the native events seems to have side effects https://github.com/elastic/apm-agent-rum-js/blob/f58bc1b836f1e3caf07b668cbed6df619bdfdc92/packages/rum-core/src/common/patching/event-target-patch.js

Could you offer an config property to bypass the event listener wrapper?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
devcorpiocommented, Mar 1, 2022

Hi @christianhaller3000 ,

Thanks for updating the details. Since it’s happening even when the agent is not initialised, there is not any configuration flag to prevent this from happening. We will need to have a look and fix it

cc @vigneshshanmugam

0reactions
christianhaller3000commented, May 16, 2022

Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found