You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For MicroAgents/BrowserAgent, introducing a method like agent.stop(); is beneficial for micro-frontend projects where sub-paths (in SPAs) are managed by different engineering teams. For example, this feature would allow running multiple agents to independently track specific route paths (e.g., /one-path/* and /two-path/*) without causing conflicts or duplicating data harvesting. The agent.stop() method can be used to stop data collection when the user navigates away from a particular route group.
Desired Behavior
Example scenario
user setup BrowserAgent or MicroAgent with auto_start=false
user manually start agent when required conditions met.
user manually stop agent when conditions are no longer valid.
user should be able to restart agent without loosing session id when conditions met again.
harvested data should not contain data from outer context.
Possible Solution
introduce stop() methods to agent instance ( MicroAgent and BrowserAgent)
update start() method to start harvesting if agent is previously stopped.
Additional context
This feature would allow running multiple agents to independently track specific route paths (e.g., /one-path/* and /two-path/*) without causing conflicts or duplicating data harvesting. The agent.stop() method can be used to stop data collection when the user navigates away from a particular route group.
Example React Component Implementation
constMicroApp=()=>{useEffect(()=>{constagent=newMicroAgent(...);// or BrowserAgent// start agent on mountagent.start();// stop agent on unmountreturn()=>{agent.stop();}},[]);return<Component/>}
The text was updated successfully, but these errors were encountered:
Summary
For MicroAgents/BrowserAgent, introducing a method like
agent.stop();
is beneficial for micro-frontend projects where sub-paths (in SPAs) are managed by different engineering teams. For example, this feature would allow running multiple agents to independently track specific route paths (e.g.,/one-path/*
and/two-path/*
) without causing conflicts or duplicating data harvesting. Theagent.stop()
method can be used to stop data collection when the user navigates away from a particular route group.Desired Behavior
Example scenario
auto_start=false
Possible Solution
stop()
methods to agent instance ( MicroAgent and BrowserAgent)start()
method to start harvesting if agent is previously stopped.Additional context
This feature would allow running multiple agents to independently track specific route paths (e.g.,
/one-path/*
and/two-path/*
) without causing conflicts or duplicating data harvesting. Theagent.stop()
method can be used to stop data collection when the user navigates away from a particular route group.Example React Component Implementation
The text was updated successfully, but these errors were encountered: