5.13.17 • Published 3 months ago

@libapm1/react-native v5.13.17

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

AppiceAPM SDK for React Native

Requirements

  • react-native >= 0.65.0

Installation and Usage

To install the package and setup your project:

npm install reactnative-plugin-appice-apm

How to use it:

========= Mandatory =======================
const AppiceAPM = require('reactnative-plugin-appice-apm');
const AppICE = require('reactnative-plugin-appice');

AppiceAPM.init({
  dsn: 'Put your dsn here',
  tracesSampleRate: 0.0,
  _experiments: {
    profilesSampleRate: 1.0,
  },
});

AppICE.getUserId((userID: any) => {
  if (userID.length > 0) {
    AppiceAPM.setUser({ id: userID });
  }
});
AppICE.getDeviceId((deviceID: any) => {
  if (deviceID.length > 0) {
    AppiceAPM.setContext('device', {
        id: deviceID,
    });
  }
});
============ Optional ============================
// You can use these functions as per your requirements.

AppiceAPM.setTag("myTag", "tag-value");
AppiceAPM.setExtra("myExtra", "extra-value");
AppiceAPM.captureMessage("Hello TestApm!");
AppiceAPM.captureException(Error);
inside android->app->build.gradle
apply from: "../../node_modules/reactnative-plugin-appice-apm/libapm.gradle"
just before 
android {
  
}
5.13.17

3 months ago

5.13.16

5 months ago

5.13.15

5 months ago

5.13.14

5 months ago

5.13.13

5 months ago

5.13.12

5 months ago

5.13.11

5 months ago

5.13.10

5 months ago

5.13.8

5 months ago

5.13.7

5 months ago

5.13.5

5 months ago

5.13.4

5 months ago

5.13.3

5 months ago

5.13.0

5 months ago