cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

React Native plugin has not been started yet! in React Native App

Sreekanth_G
Newcomer

I have followed the steps : https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configura... here, Environment is 

"react-native": "0.63.4",
SdkVersion:29,
Gradle version:7.0,
In metro config :
return {
transformer: {
// babelTransformerPath: require.resolve('react-native-svg-transformer'),
babelTransformerPath: require.resolve('react-native-svg-transformer', '@dynatrace/react-native-plugin/lib/dynatrace-transformer'),
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
},
reporter: require("@dynatrace/react-native-plugin/lib/dynatrace-reporter")
};
I have added in Component:
import { Dynatrace, DataCollectionLevel } from '@dynatrace/react-native-plugin';

// Privacy settings configured below are only provided
// to allow a quick start with capturing monitoring data.
// This has to be requested from the user
// (e.g. in a privacy settings screen) and the user decision
// has to be applied similar to this example.
Dynatrace.setDataCollectionLevel(DataCollectionLevel.User);
Dynatrace.setCrashReportingOptedIn(true);
Dynatrace.identifyUser("MyUser");
 
Iam getting below Errors:

DYNATRACE: React Native plugin has not been started yet! Data Collection level will not be set!

DYNATRACE: React Native plugin has not been started yet! Crash reporting value will not be set!

DYNATRACE: React Native plugin has not been started yet! Session will not be tagged!

 

Can you please share the example of basic log report for React Native CLI App?

 

Thank you in Advance.

0 REPLIES 0