Dynatrace terminate session DEM React native

Hello Team Dynatrace ,

I want to ask about terminating the session in react native plugin DEM Dynatrace with manual instrumentation.

if we want to start plugin we use

new ManualStartupConfiguration( beaconUrl, applicationId, reportCrash: true, logLevel: LogLevel.Info, lifecycleUpdate: false, certificateValidation: true; userOptIn: false; )

And how to terminate session Dynatrace monitoring DEM?
Is there any function like dynatrace.shutdown() in react native?

Best regards,

Ridho Nurul Adilla

Hi,
whats your use-case to manually stop monitoring?
endSession API is available, but this only ends the current and switches to a new monitoring sessions.

You can also try setting the DataCollectionLevel to off if it fits your case.

for the record: this will only create a new session with just a session start event (and if data privacy setting are set by user choice might also lead to conflicts). be aware that every time the data privacy level is changed to a different level a session split happens