This is an automated email from the ASF dual-hosted git repository.

poorejc pushed a commit to branch zipkinExample
in repository https://gitbox.apache.org/repos/asf/incubator-flagon-useralejs.git


The following commit(s) were added to refs/heads/zipkinExample by this push:
     new 5f869e1  updated comments
5f869e1 is described below

commit 5f869e110dda428e5ca2a788acd11bc6b62a9c4f
Author: poorejc <[email protected]>
AuthorDate: Tue Jun 2 17:02:21 2020 -0400

    updated comments
---
 example/zipkinExample/browser.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/example/zipkinExample/browser.js b/example/zipkinExample/browser.js
index 49334ad..52cc7ae 100644
--- a/example/zipkinExample/browser.js
+++ b/example/zipkinExample/browser.js
@@ -24,6 +24,8 @@ const log = text => logEl.innerHTML = 
`${logEl.innerHTML}\n${text}`;
 //    .then(text => log(text))
 //    .catch(err => log(`Failed:\n${err.stack}`));
 
+
+// shove wrapped Fetch call in function
 function ziptest() {
   zipkinFetch('http://localhost:8081/')
     .then(response => (response.text()))
@@ -31,12 +33,15 @@ function ziptest() {
     .catch(err => log(`Failed:\n${err.stack}`));
 }
 
+// test to see function works as expected
 //ziptest();
 
+// useralejs filter--only want clicks
 window.userale.filter(function (log) {
   var type_array = ['mouseup', 'mouseover', 'mousedown', 'keydown', 
'dblclick', 'blur', 'focus', 'input', 'wheel'];
   var logType_array = ['interval'];
   return !type_array.includes(log.type) && 
!logType_array.includes(log.logType);
 });
 
+//call zipkinFetch function conditional on click event added in html
 document.getElementById('theButton').addEventListener('click', () => 
ziptest(), false);

Reply via email to