github.com/lulzWill/go-agent@v2.1.2+incompatible/internal/crossagent/cross_agent_tests/rum_client_config.json (about) 1 [ 2 { 3 "testname":"all fields present", 4 5 "apptime_milliseconds":5, 6 "queuetime_milliseconds":3, 7 "browser_monitoring.attributes.enabled":true, 8 "transaction_name":"WebTransaction/brink/of/glory", 9 "license_key":"0000111122223333444455556666777788889999", 10 "connect_reply": 11 { 12 "beacon":"my_beacon", 13 "browser_key":"my_browser_key", 14 "application_id":"my_application_id", 15 "error_beacon":"my_error_beacon", 16 "js_agent_file":"my_js_agent_file" 17 }, 18 "user_attributes":{"alpha":"beta"}, 19 "expected": 20 { 21 "beacon":"my_beacon", 22 "licenseKey":"my_browser_key", 23 "applicationID":"my_application_id", 24 "transactionName":"Z1VSZENQX0JTUUZbXF4fUkJYX1oeXVQdVV9fQkk=", 25 "queueTime":3, 26 "applicationTime":5, 27 "atts":"SxJFEgtKE1BeQlpTEQoSUlVFUBNMTw==", 28 "errorBeacon":"my_error_beacon", 29 "agent":"my_js_agent_file" 30 } 31 }, 32 { 33 "testname":"browser_monitoring.attributes.enabled disabled", 34 35 "apptime_milliseconds":5, 36 "queuetime_milliseconds":3, 37 "browser_monitoring.attributes.enabled":false, 38 "transaction_name":"WebTransaction/brink/of/glory", 39 "license_key":"0000111122223333444455556666777788889999", 40 "connect_reply": 41 { 42 "beacon":"my_beacon", 43 "browser_key":"my_browser_key", 44 "application_id":"my_application_id", 45 "error_beacon":"my_error_beacon", 46 "js_agent_file":"my_js_agent_file" 47 }, 48 "user_attributes":{"alpha":"beta"}, 49 "expected": 50 { 51 "beacon":"my_beacon", 52 "licenseKey":"my_browser_key", 53 "applicationID":"my_application_id", 54 "transactionName":"Z1VSZENQX0JTUUZbXF4fUkJYX1oeXVQdVV9fQkk=", 55 "queueTime":3, 56 "applicationTime":5, 57 "atts":"", 58 "errorBeacon":"my_error_beacon", 59 "agent":"my_js_agent_file" 60 } 61 }, 62 { 63 "testname":"empty js_agent_file", 64 "apptime_milliseconds":5, 65 "queuetime_milliseconds":3, 66 "browser_monitoring.attributes.enabled":true, 67 "transaction_name":"WebTransaction/brink/of/glory", 68 "license_key":"0000111122223333444455556666777788889999", 69 "connect_reply": 70 { 71 "beacon":"my_beacon", 72 "browser_key":"my_browser_key", 73 "application_id":"my_application_id", 74 "error_beacon":"my_error_beacon", 75 "js_agent_file":"" 76 }, 77 "user_attributes":{"alpha":"beta"}, 78 "expected": 79 { 80 "beacon":"my_beacon", 81 "licenseKey":"my_browser_key", 82 "applicationID":"my_application_id", 83 "transactionName":"Z1VSZENQX0JTUUZbXF4fUkJYX1oeXVQdVV9fQkk=", 84 "queueTime":3, 85 "applicationTime":5, 86 "atts":"SxJFEgtKE1BeQlpTEQoSUlVFUBNMTw==", 87 "errorBeacon":"my_error_beacon", 88 "agent":"" 89 } 90 } 91 ]