22 Mar 2022 12:19 PM - last edited on 23 Mar 2022 07:26 AM by AgataWlodarczyk
We need to add some token generation code in javascript before some steps in synthetic monitoring.
What is supported and what is not in javascript synthetic event?
Solved! Go to Solution.
22 Mar 2022 12:48 PM
Hello @mhlamine
Regards,
Babar
22 Mar 2022 12:53 PM
we are talking about synthetic monitoring javascript event here not RUM.
i have a http monitor or browser monitor and i need to add a step to calculate a variable that i will use in my monitor.
22 Mar 2022 01:01 PM
Hello @mhlamine
Oops! I misunderstood.
I am not sure whether you had already gone through with the below and was this helpful in your case or not.
Regards,
Babar
22 Mar 2022 01:04 PM
We support a subset of JavaScript libraries. I doubt it includes token generation. However, you can just paste in the library code. I know customers successfully do this for CryptoJS for instance
22 Mar 2022 01:24 PM
Hi Hannah,
we need to use : ajax/libs/forge/0.9.1/forge.min.js
Regards.
22 Mar 2022 02:46 PM
Yes, you would need to add the code from the js into the pre-execution script. Since the js is 283kb, it is above the default size for pre-execution scripts, 50kb, so for the moment, you will need to create a Support ticket and request that this setting is increased. Soon you will be able to do this in the monitor itself, in a new Advanced Settings tab. 🙂
23 Mar 2022 04:21 PM
Apologies, on having checked further, the maximum size for a pre-execution script is 100kb, so unfortunately not large enough for this js. I have mentioned this scenario to the Team Captain for this.
24 Mar 2022 08:50 AM
it is strange because in the browser monitor javascript synthetic event there is no limit to the script size.