/** * Initialises this hook. * * @param linker * the {@link RuntimeLinker} to use for generating proxies. * @param tracer * the {@link TracerImpl} for correlating front- and backend traces. * @param dataHandler * the {@link DataHandler} responsible for decoding received beacons. * @param config * the configuration storage containing the EUM config. * @param agentBuilder * the agent script builder. */ public EUMInstrumentationHook(IRuntimeLinker linker, TracerImpl tracer, IDataHandler dataHandler, IConfigurationStorage config, JSAgentBuilder agentBuilder) { super(); this.linker = linker; this.tracer = tracer; this.dataHandler = dataHandler; this.agentBuilder = agentBuilder; initConfig(config); }