Closed iwindfree closed 3 years ago
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. How can I do?
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
Akamai mPulse API Key
Session ID 5e1f1521-8c1e-4900-9f76-4f52623cd2a6
Session Length 8
Session Start Thu Sep 23 2021 23:06:09 GMT+0900 (한국 표준시)
Events
Clear Events
Clear Events
navigation-commited { "frameId": 0, "parentFrameId": -1, "processId": 31, "tabId": 2, "timeStamp": 1632406022274.7322, "transitionQualifiers": [], "transitionType": "reload", "url": "http://localhost:8090/" }
request-queued { "frameId": 0, "initiator": "http://localhost:8090", "method": "GET", "parentFrameId": -1, "requestId": "292", "tabId": 2, "timeStamp": 1632406022290.102, "type": "stylesheet", "url": "http://localhost:8090/resources/css/petclinic.css" }
request-queued { "frameId": 0, "initiator": "http://localhost:8090", "method": "GET", "parentFrameId": -1, "requestId": "293", "tabId": 2, "timeStamp": 1632406022291.111, "type": "script", "url": "http://localhost:8090/js/boomerang-1.1000.10.minimal.js" }
response-started { "frameId": 0, "fromCache": true, "initiator": "http://localhost:8090", "ip": "::1", "method": "GET", "parentFrameId": -1, "requestId": "292", "statusCode": 200, "statusLine": "HTTP/1.1 200", "tabId": 2, "timeStamp": 1632406022297.272, "type": "stylesheet", "url": "http://localhost:8090/resources/css/petclinic.css" }
request-completed { "frameId": 0, "fromCache": true, "initiator": "http://localhost:8090", "ip": "::1", "method": "GET", "parentFrameId": -1, "requestId": "292", "statusCode": 200, "statusLine": "HTTP/1.1 200", "tabId": 2, "timeStamp": 1632406022297.6338, "type": "stylesheet", "url": "http://localhost:8090/resources/css/petclinic.css" }
response-started { "frameId": 0, "fromCache": true, "initiator": "http://localhost:8090", "ip": "::1", "method": "GET", "parentFrameId": -1, "requestId": "293", "statusCode": 200, "statusLine": "HTTP/1.1 200", "tabId": 2, "timeStamp": 1632406022298.1938, "type": "script", "url": "http://localhost:8090/js/boomerang-1.1000.10.minimal.js" }
request-completed { "frameId": 0, "fromCache": true, "initiator": "http://localhost:8090", "ip": "::1", "method": "GET", "parentFrameId": -1, "requestId": "293", "statusCode": 200, "statusLine": "HTTP/1.1 200", "tabId": 2, "timeStamp": 1632406022299.1208, "type": "script", "url": "http://localhost:8090/js/boomerang-1.1000.10.minimal.js" }
request-queued { "frameId": 0, "initiator": "http://localhost:8090", "method": "GET", "parentFrameId": -1, "requestId": "294", "tabId": 2, "timeStamp": 1632406022327.631, "type": "script", "url": "http://localhost:8090/webjars/jquery/2.2.4/jquery.min.js" }
143.5 event { "event": "PerformanceResourceTiming", "entry": "{\"name\":\"http://localhost:8090/resources/css/petclinic.css\",\"entryType\":\"resource\",\"startTime\":100.5,\"duration\":7.899999998509884,\"initiatorType\":\"link\",\"nextHopProtocol\":\"\",\"workerStart\":0,\"redirectStart\":0,\"redirectEnd\":0,\"fetchStart\":100.5,\"domainLookupStart\":100.5,\"domainLookupEnd\":100.5,\"connectStart\":100.5,\"connectEnd\":100.5,\"secureConnectionStart\":0,\"requestStart\":105.89999999850988,\"responseStart\":106.59999999962747,\"responseEnd\":108.39999999850988,\"transferSize\":0,\"encodedBodySize\":152399,\"decodedBodySize\":152399,\"serverTiming\":[],\"workerTiming\":[]}" }
request-queued { "frameId": 0, "initiator": "http://localhost:8090", "method": "GET", "parentFrameId": -1, "requestId": "295", "tabId": 2, "timeStamp": 1632406022339.467, "type": "script", "url": "http://localhost:8090/webjars/jquery-ui/1.11.4/jquery-ui.min.js" }
157.09999999962747 boomr
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.init (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at
at Object.set (
at Object.set (
at Object.set (
at
at Object.set (
at Object.set (
at Object.set (
at Object.set (
at
at Object.set (
at Object.is_complete (
at Object.set (
at
at
at
at
at
at
at Object.is_complete (
at Object.set (
at
at
at
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.
VM796:326 boomerang-inspector Detected Boomerang v1.1000.10
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267833) {5i2gzjuh}: boomerang: [debug] Generated PageID: 5i2gzjuh
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267834) {5i2gzjuh}: boomerang.rt: [debug] init RT
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267836) {5i2gzjuh}: boomerang.rt: [debug] Read from cookie z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=1632405969059
sl=18
tt=11010
bcn=http://localhost:8080/tunaperf
ld=1632408252758
ul=1632408267661
hd=1632408267700
obo=0
s=1632408267661
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267837) {5i2gzjuh}: boomerang.rt: [debug] Setting cookie (timer=undefined)
z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=ktx0d6zn
sl=i
tt=8hu
bcn=http://localhost:8080/tunaperf
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267840) {5i2gzjuh}: boomerang.rt: [debug] Current session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=18
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267840) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=11010, sessionError=0, lastAction=1632408267661
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267840) {5i2gzjuh}: boomerang.rt: [debug] New session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=18
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267841) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=11010, sessionError=0
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267844) {5i2gzjuh}: boomerang.History: [debug] hook: undefined
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267844) {5i2gzjuh}: boomerang.SPA: [debug] Hooked
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267845) {5i2gzjuh}: boomerang.SPA: [debug] Route Change
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267847) {5i2gzjuh}: boomerang.History: [debug] Deprecated: Initialized from Angular config
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267847) {5i2gzjuh}: boomerang.History: [debug] hook: {}
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267847) {5i2gzjuh}: boomerang.SPA: [debug] Hooked
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267847) {5i2gzjuh}: boomerang.History: [debug] Deprecated: Initialized from Backbone config
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267847) {5i2gzjuh}: boomerang.History: [debug] hook: {}
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267848) {5i2gzjuh}: boomerang.SPA: [debug] Hooked
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267848) {5i2gzjuh}: boomerang.History: [debug] Deprecated: Initialized from Ember config
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267848) {5i2gzjuh}: boomerang.History: [debug] hook: {}
boomerang-1.1000.10-debug.minimal.js:4545 (1632408267848) {5i2gzjuh}: boomerang.SPA: [debug] Hooked
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268050) {5i2gzjuh}: boomerang.History: [debug] resetting routeChangeInProgress
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268198) {5i2gzjuh}: boomerang.rt: [debug] Called done: load
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268198) {5i2gzjuh}: boomerang.rt: [debug] Read from cookie z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=1632405969059
sl=18
tt=11010
bcn=http://localhost:8080/tunaperf
obo=0
s=0
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268198) {5i2gzjuh}: boomerang.rt: [debug] Setting cookie (timer=undefined)
z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=ktx0d6zn
sl=i
tt=8hu
bcn=http://localhost:8080/tunaperf
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268199) {5i2gzjuh}: boomerang.rt: [debug] Current session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=18
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268199) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=11010, sessionError=0, lastAction=1632408267661
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268199) {5i2gzjuh}: boomerang.rt: [debug] New session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=18
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268200) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=11010, sessionError=0
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268200) {5i2gzjuh}: boomerang.rt: [debug] Got start time: 1632408267667
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268200) {5i2gzjuh}: boomerang.rt: [debug] Current session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=18
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268201) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=1632408267667, sessionLoad=11010, sessionError=0, lastAction=1632408267661
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268201) {5i2gzjuh}: boomerang.rt: [debug] New session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=18
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268201) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=1632408267667, sessionLoad=11010, sessionError=0
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268202) {5i2gzjuh}: boomerang.RT: [debug] Incrementing Session Details...
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268202) {5i2gzjuh}: boomerang.rt: [debug] Setting cookie (timer=ld)
z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=ktx0d6zn
sl=j
tt=8wk
bcn=http://localhost:8080/tunaperf
ld=1da13
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268203) {5i2gzjuh}: boomerang.rt: [debug] Setting cookie (timer=undefined)
z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=ktx0d6zn
sl=j
tt=8wk
bcn=http://localhost:8080/tunaperf
ld=1da13
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268204) {5i2gzjuh}: boomerang.nt: [info] This user agent supports NavigationTiming2
boomerang-1.1000.10-debug.minimal.js:10943 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768.
done @ boomerang-1.1000.10-debug.minimal.js:10943
fireEvent @ boomerang-1.1000.10-debug.minimal.js:925
page_ready @ boomerang-1.1000.10-debug.minimal.js:3082
page_ready_autorun @ boomerang-1.1000.10-debug.minimal.js:3007
boomerang-1.1000.10-debug.minimal.js:10944 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768.
done @ boomerang-1.1000.10-debug.minimal.js:10944
fireEvent @ boomerang-1.1000.10-debug.minimal.js:925
page_ready @ boomerang-1.1000.10-debug.minimal.js:3082
page_ready_autorun @ boomerang-1.1000.10-debug.minimal.js:3007
boomerang-1.1000.10-debug.minimal.js:10950 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: Paint Timing. https://www.chromestatus.com/features/5637885046816768.
done @ boomerang-1.1000.10-debug.minimal.js:10950
fireEvent @ boomerang-1.1000.10-debug.minimal.js:925
page_ready @ boomerang-1.1000.10-debug.minimal.js:3082
page_ready_autorun @ boomerang-1.1000.10-debug.minimal.js:3007
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268210) {5i2gzjuh}: boomerang.restiming: [info] Client supports Resource Timing API
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268213) {5i2gzjuh}: boomerang: [debug] Checking if we can send beacon
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268215) {5i2gzjuh}: boomerang: [debug] Ready to send beacon: mob.etype=4g
mob.dl=1.6
mob.rtt=200
rt.start=navigation
rt.bmr=90
rt.tstart=1632408267667
rt.bstart=1632408267815
rt.end=1632408268197
t_resp=26
t_page=504
t_done=530
t_other=t_domloaded|382,boomerang|15,boomr_fb|148
rt.tt=11540
rt.obo=0
nt_nav_st=1632408267667
nt_fet_st=1632408267668
nt_dns_st=1632408267668
nt_dns_end=1632408267668
nt_con_st=1632408267668
nt_con_end=1632408267668
nt_req_st=1632408267673
nt_res_st=1632408267693
nt_res_end=1632408267694
nt_domloading=1632408267704
nt_domint=1632408268047
nt_domcontloaded_st=1632408268047
nt_domcontloaded_end=1632408268049
nt_domcomp=1632408268195
nt_load_st=1632408268195
nt_load_end=1632408268197
nt_unload_st=1632408267702
nt_unload_end=1632408267702
nt_enc_size=3750
nt_dec_size=3750
nt_trn_size=4050
nt_protocol=http/1.1
nt_spdy=0
nt_cinf=http/1.1
nt_first_paint=1632408267875
nt_red_cnt=0
nt_nav_type=1
restiming={"http://localhost:8090/":{"|":"6,r,r,6,2,,2,2,2*12w6,8c","resources/":{"css/petclinic.css":"22i*139lb,_*44","images/":{"pets.png":"*04q,6n,3g,k|12i*11g95,_","spring-":{"pivotal-logo.png":"*016,5k,ae,7u|12i*126a,_","logo-dataflow":{"-mobile.png":"45p*12ux,_",".png":"45p*15bc,_"}}},"fonts/":{"varela_round-webfont.woff":"45n*1p8o,_","montserrat-webfont.woff":"45o*1ipc,_"}},"js/boomerang-1.1000.10-debug.minimal.js":"32i*1ahbm,_*20","webjars/":{"jquery":{"/2.2.4/jquery.min.js":"32j*11u25,_*24","-ui/1.11.4/jquery-ui.min.js":"32j*155ij,_*24"},"bootstrap/":{"3.3.6/js/bootstrap.min.js":"32j*1sg4,_*24","fonts/glyphicons-halflings-regular.woff2":"45n*1dws,_"}}}}
u=http://localhost:8090/
v=1.1000.10
sm=i
rt.si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6-qzw4i9
rt.ss=1632405969059
rt.sl=19
vis.st=visible
ua.plt=MacIntel
ua.vnd=Google Inc.
pid=5i2gzjuh
n=1
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268216) {5i2gzjuh}: boomerang.History: [debug] resetting routeChangeInProgress
boomerang-1.1000.10-debug.minimal.js:4268 POST http://localhost:8080/tunaperf net::ERR_CONNECTION_REFUSED
sendBeaconData @ boomerang-1.1000.10-debug.minimal.js:4268
real_sendBeacon @ boomerang-1.1000.10-debug.minimal.js:4168
cb @ boomerang-1.1000.10-debug.minimal.js:3158
requestIdleCallback (async)
setImmediate @ boomerang-1.1000.10-debug.minimal.js:3164
sendBeacon @ boomerang-1.1000.10-debug.minimal.js:3934
done @ boomerang-1.1000.10-debug.minimal.js:6431
fireEvent @ boomerang-1.1000.10-debug.minimal.js:925
page_ready @ boomerang-1.1000.10-debug.minimal.js:3082
page_ready_autorun @ boomerang-1.1000.10-debug.minimal.js:3007
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268871) {5i2gzjuh}: boomerang.rt: [debug] Called done: xhr
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268872) {5i2gzjuh}: boomerang.rt: [debug] Got start time: 1632408267667
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268872) {5i2gzjuh}: boomerang.rt: [debug] Current session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=19
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268872) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=1632408267667, sessionLoad=11540, sessionError=0, lastAction=1632408268202
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268872) {5i2gzjuh}: boomerang.rt: [debug] New session meta:
domain=localhost
ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
start=1632405969059
length=19
enabled=true
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268872) {5i2gzjuh}: boomerang.rt: [debug] Timers: t_start=1632408267667, sessionLoad=11540, sessionError=0
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268873) {5i2gzjuh}: boomerang.RT: [debug] Incrementing Session Details...
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268873) {5i2gzjuh}: boomerang.rt: [debug] Setting cookie (timer=ld)
z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=ktx0d6zn
sl=k
tt=9ba
bcn=http://localhost:8080/tunaperf
ld=1dajq
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268874) {5i2gzjuh}: boomerang.rt: [debug] Setting cookie (timer=undefined)
z=1
dm=localhost
si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6
ss=ktx0d6zn
sl=k
tt=9ba
bcn=http://localhost:8080/tunaperf
ld=1dajq
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268878) {5i2gzjuh}: boomerang: [debug] Checking if we can send beacon
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268879) {5i2gzjuh}: boomerang: [debug] Ready to send beacon: mob.etype=4g
mob.dl=1.6
mob.rtt=200
u=http://localhost:8090/
v=1.1000.10
sm=i
rt.si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6-qzw4i9
rt.ss=1632405969059
rt.sl=20
vis.st=visible
ua.plt=MacIntel
ua.vnd=Google Inc.
pid=5i2gzjuh
n=2
rt.bmr=90
rt.start=manual
rt.tstart=1632408267667
rt.bstart=1632408267815
rt.end=1632408268197
t_resp=26
t_page=504
t_done=530
t_other=boomerang|15,boomr_fb|148
http.initiator=spa_hard
rt.tt=12070
rt.obo=0
restiming={"http://localhost:8090/":{"|":"6,r,r,6,2,,2,2,2*12w6,8c","resources/":{"css/petclinic.css":"22i*139lb,_*44","images/":{"pets.png":"*04q,6n,3g,k|12i*11g95,_","spring-":{"pivotal-logo.png":"*016,5k,ae,7u|12i*126a,_","logo-dataflow":{"-mobile.png":"45p*12ux,_",".png":"45p*15bc,_"}},"favicon.png":"0fd,8,7,4*1eo,8c"},"fonts/":{"varela_round-webfont.woff":"45n*1p8o,_","montserrat-webfont.woff":"45o*1ipc,_"}},"js/boomerang-1.1000.10-debug.minimal.js":"32i*1ahbm,_*20","webjars/":{"jquery":{"/2.2.4/jquery.min.js":"32j*11u25,_*24","-ui/1.11.4/jquery-ui.min.js":"32j*155ij,_*24"},"bootstrap/":{"3.3.6/js/bootstrap.min.js":"32j*1sg4,_*24","fonts/glyphicons-halflings-regular.woff2":"45n*1dws,_"}}}}
boomerang-1.1000.10-debug.minimal.js:4545 (1632408268880) {5i2gzjuh}: boomerang.History: [debug] resetting routeChangeInProgress
boomerang-1.1000.10-debug.minimal.js:4268 POST http://localhost:8080/tunaperf net::ERR_CONNECTION_REFUSED
sendBeaconData @ boomerang-1.1000.10-debug.minimal.js:4268
real_sendBeacon @ boomerang-1.1000.10-debug.minimal.js:4168
cb @ boomerang-1.1000.10-debug.minimal.js:3158
requestIdleCallback (async)
setImmediate @ boomerang-1.1000.10-debug.minimal.js:3164
sendBeacon @ boomerang-1.1000.10-debug.minimal.js:3934
done @ boomerang-1.1000.10-debug.minimal.js:6431
fireEvent @ boomerang-1.1000.10-debug.minimal.js:925
responseEnd @ boomerang-1.1000.10-debug.minimal.js:3828
sendResponseEnd @ boomerang-1.1000.10-debug.minimal.js:7545
MutationHandler.sendResource @ boomerang-1.1000.10-debug.minimal.js:7569
MutationHandler.sendEvent @ boomerang-1.1000.10-debug.minimal.js:7477
MutationHandler.timedout @ boomerang-1.1000.10-debug.minimal.js:7722
(anonymous) @ boomerang-1.1000.10-debug.minimal.js:7691
setTimeout (async)
MutationHandler.setTimeout @ boomerang-1.1000.10-debug.minimal.js:7691
MutationHandler.mutation_cb @ boomerang-1.1000.10-debug.minimal.js:8222
done @ boomerang-1.1000.10-debug.minimal.js:1960
Your second beacon is being sent as rt.start=manual
which means it's coming from XHR. The first beacon is navigation (ie, page load)
If you want to disable the page load beacon, then set autorun:false
in the BOOMR.init
call.
Thanks` for your help. My test page source is below.
<!DOCTYPE html>
<html>
<script>
function loadDoc() {
const xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
document.getElementById("textBox").value = 'AAA';
}
xhttp.open("GET", "/hello", true);
xhttp.send();
}
</script>
<script src="/js/boomerang-1.1000.10-debug.minimal.js"></script>
<script>
BOOMR.init({
AutoXHR: {
alwaysSendXhr: true,
},
instrument_xhr: true,
beacon_url: "/beacon",
});
</script>
<body >
<div id="demo">
<h2>Let AJAX change this text</h2>
<button type="button" onclick="loadDoc()">Change Content</button>
<input type="text" id="textBox"/>
</div>
</body>
</html>
After I load this page, Two beacons sent. In my thought, first beacon is from navigation, second beacon if from rt. I only want navigation beacon. so I exclude rt plugin when build boomerang. auto-xhr beacon not send after call xhr. (ie, press button) how do I do? I only navigation and xhr beacon. below is my debug log.
boomerang-1.1000.10-debug.minimal.js:4545 (1632413138481) {xxe6bjyi}: boomerang: [debug] Generated PageID: xxe6bjyi boomerang-1.1000.10-debug.minimal.js:4545 (1632413138482) {xxe6bjyi}: boomerang.rt: [debug] init RT boomerang-1.1000.10-debug.minimal.js:4545 (1632413138484) {xxe6bjyi}: boomerang.rt: [debug] Read from cookie z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=1632405969059 sl=70 tt=40450 bcn=http://localhost:8080/tunaperf ld=1632413135765 ul=1632413138378 hd=1632413138401 obo=0 s=1632413138378 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138484) {xxe6bjyi}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=ktx0d6zn sl=1y tt=v7m bcn=http://localhost:8080/tunaperf boomerang-1.1000.10-debug.minimal.js:4545 (1632413138487) {xxe6bjyi}: boomerang.rt: [debug] Current session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=70 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413138487) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=40450, sessionError=0, lastAction=1632413138378 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138488) {xxe6bjyi}: boomerang.rt: [debug] New session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=70 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413138488) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=40450, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138490) {xxe6bjyi}: boomerang.History: [debug] hook: undefined boomerang-1.1000.10-debug.minimal.js:4545 (1632413138491) {xxe6bjyi}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632413138491) {xxe6bjyi}: boomerang.SPA: [debug] Route Change boomerang-1.1000.10-debug.minimal.js:4545 (1632413138492) {xxe6bjyi}: boomerang.History: [debug] Deprecated: Initialized from Angular config boomerang-1.1000.10-debug.minimal.js:4545 (1632413138492) {xxe6bjyi}: boomerang.History: [debug] hook: {} boomerang-1.1000.10-debug.minimal.js:4545 (1632413138492) {xxe6bjyi}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632413138492) {xxe6bjyi}: boomerang.History: [debug] Deprecated: Initialized from Backbone config boomerang-1.1000.10-debug.minimal.js:4545 (1632413138492) {xxe6bjyi}: boomerang.History: [debug] hook: {} boomerang-1.1000.10-debug.minimal.js:4545 (1632413138493) {xxe6bjyi}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632413138493) {xxe6bjyi}: boomerang.History: [debug] Deprecated: Initialized from Ember config boomerang-1.1000.10-debug.minimal.js:4545 (1632413138493) {xxe6bjyi}: boomerang.History: [debug] hook: {} boomerang-1.1000.10-debug.minimal.js:4545 (1632413138493) {xxe6bjyi}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632413138564) {xxe6bjyi}: boomerang.History: [debug] resetting routeChangeInProgress boomerang-1.1000.10-debug.minimal.js:4545 (1632413138677) {xxe6bjyi}: boomerang.rt: [debug] Called done: load boomerang-1.1000.10-debug.minimal.js:4545 (1632413138677) {xxe6bjyi}: boomerang.rt: [debug] Read from cookie z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=1632405969059 sl=70 tt=40450 bcn=http://localhost:8080/tunaperf obo=0 s=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138677) {xxe6bjyi}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=ktx0d6zn sl=1y tt=v7m bcn=http://localhost:8080/tunaperf boomerang-1.1000.10-debug.minimal.js:4545 (1632413138679) {xxe6bjyi}: boomerang.rt: [debug] Current session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=70 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413138679) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=40450, sessionError=0, lastAction=1632413138378 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138679) {xxe6bjyi}: boomerang.rt: [debug] New session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=70 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413138679) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=40450, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138680) {xxe6bjyi}: boomerang.rt: [debug] Got start time: 1632413138383 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138680) {xxe6bjyi}: boomerang.rt: [debug] Current session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=70 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413138680) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=1632413138383, sessionLoad=40450, sessionError=0, lastAction=1632413138378 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138680) {xxe6bjyi}: boomerang.rt: [debug] New session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=70 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413138680) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=1632413138383, sessionLoad=40450, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138680) {xxe6bjyi}: boomerang.RT: [debug] Incrementing Session Details... boomerang-1.1000.10-debug.minimal.js:4545 (1632413138681) {xxe6bjyi}: boomerang.rt: [debug] Setting cookie (timer=ld) z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=ktx0d6zn sl=1z tt=vfr bcn=http://localhost:8080/tunaperf ld=49o46 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138681) {xxe6bjyi}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=ktx0d6zn sl=1z tt=vfr bcn=http://localhost:8080/tunaperf ld=49o46 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138682) {xxe6bjyi}: boomerang.nt: [info] This user agent supports NavigationTiming2 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138685) {xxe6bjyi}: boomerang.restiming: [info] Client supports Resource Timing API boomerang-1.1000.10-debug.minimal.js:4545 (1632413138688) {xxe6bjyi}: boomerang: [debug] Checking if we can send beacon boomerang-1.1000.10-debug.minimal.js:4545 (1632413138689) {xxe6bjyi}: boomerang: [debug] Ready to send beacon: mob.etype=4g mob.dl=10 mob.rtt=250 rt.start=navigation rt.bmr=50 rt.tstart=1632413138383 rt.bstart=1632413138471 rt.end=1632413138676 t_resp=12 t_page=281 t_done=293 t_other=t_domloaded|111,boomerang|9,boomr_fb|88 rt.tt=40743 rt.obo=0 nt_nav_st=1632413138383 nt_fet_st=1632413138384 nt_dns_st=1632413138384 nt_dns_end=1632413138384 nt_con_st=1632413138384 nt_con_end=1632413138384 nt_req_st=1632413138391 nt_res_st=1632413138395 nt_res_end=1632413138395 nt_domloading=1632413138406 nt_domint=1632413138494 nt_domcontloaded_st=1632413138494 nt_domcontloaded_end=1632413138495 nt_domcomp=1632413138675 nt_load_st=1632413138676 nt_load_end=1632413138676 nt_unload_st=1632413138402 nt_unload_end=1632413138402 nt_enc_size=857 nt_dec_size=857 nt_trn_size=1157 nt_red_cnt=0 nt_navtype=1 restiming={"http://localhost:8090/":{"rest/rest.html":"6,d,c,8,2,,2,2,2*1nt,8c","js/boomerang-1.1000.10-debug.minimal.js":"31e*1ahbm,20"}} u=http://localhost:8090/rest/rest.html r=http://localhost:8090/ v=1.1000.10 sm=i rt.si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6-qzw4i9 rt.ss=1632405969059 rt.sl=71 vis.st=visible ua.plt=MacIntel ua.vnd=Google Inc. pid=xxe6bjyi n=1 boomerang-1.1000.10-debug.minimal.js:4545 (1632413138690) {xxe6bjyi}: boomerang.History: [debug] resetting routeChangeInProgress boomerang-1.1000.10-debug.minimal.js:4268 POST http://localhost:8080/tunaperf net::ERR_CONNECTION_REFUSED sendBeaconData @ boomerang-1.1000.10-debug.minimal.js:4268 real_sendBeacon @ boomerang-1.1000.10-debug.minimal.js:4168 cb @ boomerang-1.1000.10-debug.minimal.js:3158 requestIdleCallback (async) setImmediate @ boomerang-1.1000.10-debug.minimal.js:3164 sendBeacon @ boomerang-1.1000.10-debug.minimal.js:3934 done @ boomerang-1.1000.10-debug.minimal.js:6431 fireEvent @ boomerang-1.1000.10-debug.minimal.js:925 page_ready @ boomerang-1.1000.10-debug.minimal.js:3082 page_ready_autorun @ boomerang-1.1000.10-debug.minimal.js:3007 boomerang-1.1000.10-debug.minimal.js:4545 (1632413139501) {xxe6bjyi}: boomerang.rt: [debug] Called done: xhr boomerang-1.1000.10-debug.minimal.js:4545 (1632413139501) {xxe6bjyi}: boomerang.rt: [debug] Got start time: 1632413138383 boomerang-1.1000.10-debug.minimal.js:4545 (1632413139501) {xxe6bjyi}: boomerang.rt: [debug] Current session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=71 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413139501) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=1632413138383, sessionLoad=40743, sessionError=0, lastAction=1632413138681 boomerang-1.1000.10-debug.minimal.js:4545 (1632413139502) {xxe6bjyi}: boomerang.rt: [debug] New session meta: domain=localhost ID=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 start=1632405969059 length=71 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632413139502) {xxe6bjyi}: boomerang.rt: [debug] Timers: t_start=1632413138383, sessionLoad=40743, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632413139502) {xxe6bjyi}: boomerang.RT: [debug] Incrementing Session Details... boomerang-1.1000.10-debug.minimal.js:4545 (1632413139502) {xxe6bjyi}: boomerang.rt: [debug] Setting cookie (timer=ld) z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=ktx0d6zn sl=20 tt=vnw bcn=http://localhost:8080/tunaperf ld=49oqz boomerang-1.1000.10-debug.minimal.js:4545 (1632413139503) {xxe6bjyi}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6 ss=ktx0d6zn sl=20 tt=vnw bcn=http://localhost:8080/tunaperf ld=49oqz boomerang-1.1000.10-debug.minimal.js:4545 (1632413139506) {xxe6bjyi}: boomerang: [debug] Checking if we can send beacon boomerang-1.1000.10-debug.minimal.js:4545 (1632413139508) {xxe6bjyi}: boomerang: [debug] Ready to send beacon: mob.etype=4g mob.dl=10 mob.rtt=250 u=http://localhost:8090/rest/rest.html r=http://localhost:8090/ v=1.1000.10 sm=i rt.si=5e1f1521-8c1e-4900-9f76-4f52623cd2a6-qzw4i9 rt.ss=1632405969059 rt.sl=72 vis.st=visible ua.plt=MacIntel ua.vnd=Google Inc. pid=xxe6bjyi n=2 rt.bmr=50 rt.start=manual rt.tstart=1632413138383 rt.bstart=1632413138471 rt.end=1632413138676 t_resp=12 t_page=281 t_done=293 t_other=boomerang|9,boomr_fb|88 http.initiator=spa_hard rt.tt=41036 rt.obo=0 restiming={"http://localhost:8090/":{"rest/rest.html":"6,d,c,8,2,,2,2,21nt,8c","js/boomerang-1.1000.10-debug.minimal.js":"31e1ahbm,_20"}} boomerang-1.1000.10-debug.minimal.js:4545 (1632413139508) {xxe6bjyi}: boomerang.History: [debug] resetting routeChangeInProgress boomerang-1.1000.10-debug.minimal.js:4268 POST http://localhost:8080/tunaperf net::ERR_CONNECTION_REFUSED sendBeaconData @ boomerang-1.1000.10-debug.minimal.js:4268 real_sendBeacon @ boomerang-1.1000.10-debug.minimal.js:4168 cb @ boomerang-1.1000.10-debug.minimal.js:3158 requestIdleCallback (async) setImmediate @ boomerang-1.1000.10-debug.minimal.js:3164 sendBeacon @ boomerang-1.1000.10-debug.minimal.js:3934 done @ boomerang-1.1000.10-debug.minimal.js:6431 fireEvent @ boomerang-1.1000.10-debug.minimal.js:925 responseEnd @ boomerang-1.1000.10-debug.minimal.js:3828 sendResponseEnd @ boomerang-1.1000.10-debug.minimal.js:7545 MutationHandler.sendResource @ boomerang-1.1000.10-debug.minimal.js:7569 MutationHandler.sendEvent @ boomerang-1.1000.10-debug.minimal.js:7477 MutationHandler.timedout @ boomerang-1.1000.10-debug.minimal.js:7722 (anonymous) @ boomerang-1.1000.10-debug.minimal.js:7691 setTimeout (async) MutationHandler.setTimeout @ boomerang-1.1000.10-debug.minimal.js:7691 MutationHandler.mutation_cb @ boomerang-1.1000.10-debug.minimal.js:8222 done @ boomerang-1.1000.10-debug.minimal.js:1960
I have a another question. I was wondering if there is a way to make a uuid for every request (ex: page request, ajax call). This is because end-to-end trace is possible if I can get the uuid value made by boomerang script using cookie or other method(http header or param)
In your code, first beacon is from onload
, and second beacon is from xhr
. Both beacons are sent from rt.js
navtiming.js
does not send a beacon, it only adds data to the existing beacon (it will add it to both types of beacons).
To generate a UUID, call the BOOMR.utils.generateUUID()
function. You can call it anywhere in your code, and use BOOMR.addVar
to add it to the beacon. See the documentation for more details.
Hi @iwindfree ,
if you would e2e Traces. There is a opentelemetry-plugin for boomerang.js boomerang-opentelemetry-plugin
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 Thanks for your help. but I don't understand about something. below is my test.html
<!DOCTYPE html>
<html>
<script src="/js/boomerang-1.1000.10-debug.minimal.js"></script>
<script>
BOOMR.init({
AutoXHR: {
alwaysSendXhr: true,
},
instrument_xhr: true,
beacon_url: "/beacon",
});
</script>
<body >
<div id="demo">
<h2>Hi, Test Page</h2>
</div>
</body>
</html>
There is no xhr call.
but boomerang debug log, there is usually 2 beacons. below is debug log.
Debug log
boomerang-1.1000.10-debug.minimal.js:4545 (1632494893033) {9w9ynfow}: boomerang: [debug] Generated PageID: 9w9ynfow boomerang-1.1000.10-debug.minimal.js:4545 (1632494893033) {9w9ynfow}: boomerang.rt: [debug] init RT boomerang-1.1000.10-debug.minimal.js:4545 (1632494893035) {9w9ynfow}: boomerang.rt: [debug] Read from cookie z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=1632494874842 sl=4 tt=348 bcn=/beacon ld=1632494886353 ul=1632494892989 hd=1632494893009 obo=0 s=1632494892989 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893035) {9w9ynfow}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=ktyhar4q sl=4 tt=9o bcn=/beacon boomerang-1.1000.10-debug.minimal.js:4545 (1632494893037) {9w9ynfow}: boomerang.rt: [debug] Current session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=4 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494893037) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=348, sessionError=0, lastAction=1632494892989 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893038) {9w9ynfow}: boomerang.rt: [debug] New session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=4 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494893038) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=348, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893040) {9w9ynfow}: boomerang.History: [debug] hook: undefined boomerang-1.1000.10-debug.minimal.js:4545 (1632494893040) {9w9ynfow}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632494893041) {9w9ynfow}: boomerang.SPA: [debug] Route Change boomerang-1.1000.10-debug.minimal.js:4545 (1632494893042) {9w9ynfow}: boomerang.History: [debug] Deprecated: Initialized from Angular config boomerang-1.1000.10-debug.minimal.js:4545 (1632494893042) {9w9ynfow}: boomerang.History: [debug] hook: {} boomerang-1.1000.10-debug.minimal.js:4545 (1632494893043) {9w9ynfow}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632494893043) {9w9ynfow}: boomerang.History: [debug] Deprecated: Initialized from Backbone config boomerang-1.1000.10-debug.minimal.js:4545 (1632494893043) {9w9ynfow}: boomerang.History: [debug] hook: {} boomerang-1.1000.10-debug.minimal.js:4545 (1632494893043) {9w9ynfow}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632494893043) {9w9ynfow}: boomerang.History: [debug] Deprecated: Initialized from Ember config boomerang-1.1000.10-debug.minimal.js:4545 (1632494893043) {9w9ynfow}: boomerang.History: [debug] hook: {} boomerang-1.1000.10-debug.minimal.js:4545 (1632494893044) {9w9ynfow}: boomerang.SPA: [debug] Hooked boomerang-1.1000.10-debug.minimal.js:4545 (1632494893047) {9w9ynfow}: boomerang.rt: [debug] Called done: load boomerang-1.1000.10-debug.minimal.js:4545 (1632494893047) {9w9ynfow}: boomerang.rt: [debug] Read from cookie z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=1632494874842 sl=4 tt=348 bcn=/beacon obo=0 s=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893048) {9w9ynfow}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=ktyhar4q sl=4 tt=9o bcn=/beacon boomerang-1.1000.10-debug.minimal.js:4545 (1632494893048) {9w9ynfow}: boomerang.rt: [debug] Current session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=4 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494893048) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=348, sessionError=0, lastAction=1632494892989 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893048) {9w9ynfow}: boomerang.rt: [debug] New session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=4 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494893048) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=undefined, sessionLoad=348, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893049) {9w9ynfow}: boomerang.rt: [debug] Got start time: 1632494892993 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893049) {9w9ynfow}: boomerang.rt: [debug] Current session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=4 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494893049) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=1632494892993, sessionLoad=348, sessionError=0, lastAction=1632494892989 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893049) {9w9ynfow}: boomerang.rt: [debug] New session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=4 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494893049) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=1632494892993, sessionLoad=348, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893049) {9w9ynfow}: boomerang.RT: [debug] Incrementing Session Details... boomerang-1.1000.10-debug.minimal.js:4545 (1632494893050) {9w9ynfow}: boomerang.rt: [debug] Setting cookie (timer=ld) z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=ktyhar4q sl=5 tt=b5 bcn=/beacon ld=e1s boomerang-1.1000.10-debug.minimal.js:4545 (1632494893050) {9w9ynfow}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=ktyhar4q sl=5 tt=b5 bcn=/beacon ld=e1s boomerang-1.1000.10-debug.minimal.js:4545 (1632494893051) {9w9ynfow}: boomerang.nt: [info] This user agent supports NavigationTiming2 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893054) {9w9ynfow}: boomerang.restiming: [info] Client supports Resource Timing API boomerang-1.1000.10-debug.minimal.js:4545 (1632494893062) {9w9ynfow}: boomerang: [debug] Checking if we can send beacon boomerang-1.1000.10-debug.minimal.js:4545 (1632494893063) {9w9ynfow}: boomerang: [debug] Ready to send beacon: mob.etype=4g mob.dl=10 mob.rtt=100 rt.start=navigation rt.tstart=1632494892993 rt.bstart=1632494893029 rt.end=1632494893046 t_resp=8 t_page=45 t_done=53 t_other=t_domloaded|52,boomerang|2,boomr_fb|36 rt.tt=401 rt.obo=0 nt_nav_st=1632494892993 nt_fet_st=1632494892994 nt_dns_st=1632494892994 nt_dns_end=1632494892994 nt_con_st=1632494892994 nt_con_end=1632494892994 nt_req_st=1632494892997 nt_res_st=1632494893001 nt_res_end=1632494893002 nt_domloading=1632494893012 nt_domint=1632494893044 nt_domcontloaded_st=1632494893044 nt_domcontloaded_end=1632494893045 nt_domcomp=1632494893046 nt_load_st=1632494893046 nt_load_end=1632494893046 nt_unload_st=1632494893011 nt_unload_end=1632494893011 nt_enc_size=306 nt_dec_size=306 nt_trn_size=606 nt_red_cnt=0 nt_nav_type=1 restiming={"http://localhost:8090/rest/test.html":"6,a,9,4,1,,1,1,1*18i,8c"} u=http://localhost:8090/rest/test.html v=1.1000.10 sm=i rt.si=1b4b4699-1872-4821-9037-fd075461e019-qzy13v rt.ss=1632494874842 rt.sl=5 vis.st=visible ua.plt=MacIntel ua.vnd=Google Inc. pid=9w9ynfow n=1 boomerang-1.1000.10-debug.minimal.js:4545 (1632494893063) {9w9ynfow}: boomerang.History: [debug] resetting routeChangeInProgress boomerang-1.1000.10-debug.minimal.js:4268 POST http://localhost:8090/beacon 404 sendBeaconData @ boomerang-1.1000.10-debug.minimal.js:4268 real_sendBeacon @ boomerang-1.1000.10-debug.minimal.js:4168 cb @ boomerang-1.1000.10-debug.minimal.js:3158 requestIdleCallback (async) setImmediate @ boomerang-1.1000.10-debug.minimal.js:3164 sendBeacon @ boomerang-1.1000.10-debug.minimal.js:3934 done @ boomerang-1.1000.10-debug.minimal.js:6431 fireEvent @ boomerang-1.1000.10-debug.minimal.js:925 page_ready @ boomerang-1.1000.10-debug.minimal.js:3082 page_ready_autorun @ boomerang-1.1000.10-debug.minimal.js:3007 boomerang-1.1000.10-debug.minimal.js:4545 (1632494894049) {9w9ynfow}: boomerang.rt: [debug] Called done: xhr boomerang-1.1000.10-debug.minimal.js:4545 (1632494894049) {9w9ynfow}: boomerang.rt: [debug] Got start time: 1632494892993 boomerang-1.1000.10-debug.minimal.js:4545 (1632494894050) {9w9ynfow}: boomerang.rt: [debug] Current session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=5 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494894050) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=1632494892993, sessionLoad=401, sessionError=0, lastAction=1632494893050 boomerang-1.1000.10-debug.minimal.js:4545 (1632494894050) {9w9ynfow}: boomerang.rt: [debug] New session meta: domain=localhost ID=1b4b4699-1872-4821-9037-fd075461e019 start=1632494874842 length=5 enabled=true boomerang-1.1000.10-debug.minimal.js:4545 (1632494894050) {9w9ynfow}: boomerang.rt: [debug] Timers: t_start=1632494892993, sessionLoad=401, sessionError=0 boomerang-1.1000.10-debug.minimal.js:4545 (1632494894050) {9w9ynfow}: boomerang.RT: [debug] Incrementing Session Details... boomerang-1.1000.10-debug.minimal.js:4545 (1632494894050) {9w9ynfow}: boomerang.rt: [debug] Setting cookie (timer=ld) z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=ktyhar4q sl=6 tt=cm bcn=/beacon ld=etk boomerang-1.1000.10-debug.minimal.js:4545 (1632494894051) {9w9ynfow}: boomerang.rt: [debug] Setting cookie (timer=undefined) z=1 dm=localhost si=1b4b4699-1872-4821-9037-fd075461e019 ss=ktyhar4q sl=6 tt=cm bcn=/beacon ld=etk boomerang-1.1000.10-debug.minimal.js:4545 (1632494894052) {9w9ynfow}: boomerang: [debug] Checking if we can send beacon boomerang-1.1000.10-debug.minimal.js:4545 (1632494894052) {9w9ynfow}: boomerang: [debug] Ready to send beacon: mob.etype=4g mob.dl=10 mob.rtt=100 u=http://localhost:8090/rest/test.html v=1.1000.10 sm=i rt.si=1b4b4699-1872-4821-9037-fd075461e019-qzy13v rt.ss=1632494874842 rt.sl=6 vis.st=visible ua.plt=MacIntel ua.vnd=Google Inc. pid=9w9ynfow n=2 rt.bmr=30 rt.start=manual rt.tstart=1632494892993 rt.bstart=1632494893029 rt.end=1632494893046 t_resp=8 t_page=45 t_done=53 t_other=boomerang|2,boomr_fb|36 http.initiator=spa_hard rt.tt=454 rt.obo=0 restiming={"http://localhost:8090/":{"rest/test.html":"6,a,9,4,1,,1,1,1*18i,8c","js/boomerang-1.1000.10-debug.minimal.js":"3u*1ahbm,8c*20"}} boomerang-1.1000.10-debug.minimal.js:4545 (1632494894053) {9w9ynfow}: boomerang.History: [debug] resetting routeChangeInProgress boomerang-1.1000.10-debug.minimal.js:4268 POST http://localhost:8090/beacon 404 sendBeaconData @ boomerang-1.1000.10-debug.minimal.js:4268 real_sendBeacon @ boomerang-1.1000.10-debug.minimal.js:4168 cb @ boomerang-1.1000.10-debug.minimal.js:3158 requestIdleCallback (async) setImmediate @ boomerang-1.1000.10-debug.minimal.js:3164 sendBeacon @ boomerang-1.1000.10-debug.minimal.js:3934 done @ boomerang-1.1000.10-debug.minimal.js:6431 fireEvent @ boomerang-1.1000.10-debug.minimal.js:925 responseEnd @ boomerang-1.1000.10-debug.minimal.js:3828 sendResponseEnd @ boomerang-1.1000.10-debug.minimal.js:7545 MutationHandler.sendResource @ boomerang-1.1000.10-debug.minimal.js:7569 MutationHandler.sendEvent @ boomerang-1.1000.10-debug.minimal.js:7477 MutationHandler.timedout @ boomerang-1.1000.10-debug.minimal.js:7722 (anonymous) @ boomerang-1.1000.10-debug.minimal.js:7691 setTimeout (async) MutationHandler.setTimeout @ boomerang-1.1000.10-debug.minimal.js:7691 MutationHandler.mutation_cb @ boomerang-1.1000.10-debug.minimal.js:8222 done @ boomerang-1.1000.10-debug.minimal.js:1960
Do you have the page visible on a public website where I can investigate?
Hi, @bluesmoon https://tunaweb.s3.ap-northeast-2.amazonaws.com/test.html
Thanks for your help.
The second beacon isn't for XHR, it has http.initiator=spa_hard
so it's a SPA Hard Navigation.
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 spa
plugin, you'll want to disable autorun
so the regular Page Load beacon doesn't fire:
BOOMR.init({
AutoXHR: {
alwaysSendXhr: true,
},
instrument_xhr: true,
beacon_url: "/beacon",
autorun: false
});
https://akamai.github.io/boomerang/BOOMR.plugins.SPA.html
Let us know if that fixes it!
Hi, @nicjansma Thanks for your help. It works !!!
Great! Closing this out
Is there any way to store these logs into file or database?
si=954d2f09-1b20-48c6-9379-c94036b8433e ss=ljwnrykc sl=1 tt=1p bcn=http://localhost:8888/beacon boomerang.js:4545:13 (1688981163776) {moj2ub3e}: boomerang: [debug] Invalid parameters or site domain: Cookie-Sample/[object Object]/ boomerang.js:4545:13 (1688981163776) {moj2ub3e}: boomerang.rt: [error] cannot set start cookie boomerang.js:4545:13 (1688981163776) {moj2ub3e}: boomerang.nt: [info] This user agent supports NavigationTiming2 boomerang.js:4545:13 (1688981163792) {moj2ub3e}: boomerang: [debug] Checking if we can send beacon boomerang.js:4545:13 (1688981163794) {moj2ub3e}: boomerang: [debug] Ready to send beacon: nocookie=1 rt.start=navigation rt.tstart=1688981163708 rt.bstart=1688981163755 rt.end=1688981163769 t_resp=0 t_page=61 t_done=61 t_other=t_domloaded|59,boomerang|16,boomr_fb|47 rt.tt=61 rt.obo=0 nt_nav_st=1688981163708 nt_domloading=1688981163724 nt_domint=1688981163767 nt_domcontloaded_st=1688981163767 nt_domcontloaded_end=1688981163767 nt_domcomp=1688981163770 nt_load_st=1688981163770 nt_load_end=1688981163770 nt_unload_st=1688981163725 nt_unload_end=1688981163727 nt_red_cnt=0 nt_nav_type=1 u=file:///C:/User/index.html v=%boomerang_version% sm=i rt.si=954d2f09-1b20-48c6-9379-c94036b8433e-rxkq7g rt.ss=1688981163708 rt.sl=1 vis.st=visible ua.plt=Win32 ua.vnd= pid=moj2ub3e n=1
@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
@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. And can we extract the network tab data without using webdrivers with the help of javascript.?
@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?