-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use autoxhr plugin without rt plugin? #327
Comments
Can you post your config? You should not be getting two beacons when you have multiple plugins enabled. |
BOOMR.init({
AutoXHR: {
enabled: true
},
instrument_xhr: true,
beacon_url: "mybeaconurl",
});
and below is my plugin list when compile
"plugins": [
"plugins/rt.js",
"plugins/auto-xhr.js",
"plugins/spa.js",
"plugins/history.js",
"plugins/navtiming.js",
"plugins/restiming.js",
"plugins/mobile.js",
"plugins/compression.js",
"plugins/mq.js",
"plugins/errors.js"
] My problem is below. If rt plugin and navtiming plugin are used at the same time, two beacons are called when the page is loaded. I disabled the rt plugin because I wanted only the result of the navtiming plugin. In this case, the beacon of result of auto-xhr plugin is not called. The auto-xhr plugin seems to have a dependency on the rt plugin. |
Can you turn on debug logging and post the console output when you get two beacons? I'd like to understand what is causing 2 beacons to be sent since this is not expected behaviour. |
I installed boomerang chrome extension. below is event . Version 1.1000.10 |
If the above attachment is not what you want, please let me know how to turn on debug log. |
We need the boomerang log. You don't need any extension. When you build boomerang, it will create a minified version as well as a debug version. Use the debug version in your webpage. This will cause many messages to be printed to the webdev console as boomerang runs. That's the log that is required. |
Below is boomerang log.
|
Your second beacon is being sent as If you want to disable the page load beacon, then set |
Thanks` for your help.
After I load this page, Two beacons sent. boomerang-1.1000.10-debug.minimal.js:4545 (1632413138481) {xxe6bjyi}: boomerang: [debug] Generated PageID: xxe6bjyi |
I have a another question. |
In your code, first beacon is from To generate a UUID, call the |
Hi @iwindfree , if you would e2e Traces. There is a opentelemetry-plugin for boomerang.js You Need a OT-Receiver to get the Traces and correlation with the other Traces of your App. You could use this "Stack" for JVM-Tracing and EUM-Tracing: inspectit-ocelot Regards, Sascha |
Hi, @bluesmoon
There is no xhr call. but boomerang debug log, there is usually 2 beacons.
|
Do you have the page visible on a public website where I can investigate? |
Hi, @bluesmoon Thanks for your help. |
The second beacon isn't for XHR, it has So right now it looks like it's sending both a "regular" page load beacon plus a SPA Hard Navigation beacon. You probably only want one or the other. Since you've enabled the
https://akamai.github.io/boomerang/BOOMR.plugins.SPA.html Let us know if that fixes it! |
Hi, @nicjansma |
Great! Closing this out |
Is there any way to store these logs into file or database? si=954d2f09-1b20-48c6-9379-c94036b8433e |
@rohit2gore3 you could do it. Here is an easy guide about how to store to local file: https://confluence.snapbytes.com/time-to-sla/knowledge-base/guide/how-to-save-chrome-console-logs-to-a-file |
Thanks but I am trying to save the browser console data to a file with javascript code but I am not getting the correct information. |
@rohit2gore3 if you would like to intercept the data produced by Boomerang JS, you would need to run a web server that collects the Boomerang beacons. The Boomerang JS developers maintain only the client side library and don't provide a backend solution. You will need to read, parse the and save the data produced by Boomerang JS. Probably a good Google search would help you find if there are any open source solutions available. |
I am using boomerang scirpt for the first time. This is excellent1 I have one question. I plan to only support browsers that support navigation timing, so I'm going to use navigation timing plugin instead of rt plugin. This is because when two plugins are used at the same time, two beacons are called after page loading. By the way, if rt plugin is disabled, autoxhr plugin does not send beacon. Is there any suitable solution? Or am I understanding it wrong?
The text was updated successfully, but these errors were encountered: