import InstrumentationModule from '../../native/InstrumentationModule'; /** * Stops sending of beacons to the collector. * * No data will come from the agent while shut down. All other activities of * the agent will continue, except for event sending. * * See also {@link restartAgent} */ async function shutdownAgent(): Promise { await InstrumentationModule.shutdownAgent(); } /** * Restarts sending of beacons to the collector. * * Data will start flowing from the agent immediately. No change will occur if * the shutdownAgent call has not been made. * * See also {@link shutdownAgent} */ async function restartAgent(): Promise { await InstrumentationModule.restartAgent(); } export {restartAgent, shutdownAgent};