New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

reactnative_plugin_appice_apm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

reactnative_plugin_appice_apm

Official libapm SDK for react-native

unpublished
latest
Source
npmnpm
Version
5.13.16
Version published
Maintainers
1
Created
Source

Libapm SDK for React Native

Requirements

  • react-native >= 0.65.0

Features

  • RN New Architecture support

Installation and Usage

To install the package and setup your project:

npm install reactnative-plugin-appice-apm

How to use it:

import * as AppiceAPM from "reactnative-plugin-appice-apm";
const AppICE = require('reactnative-plugin-appice');

TestApm.init({
  dsn: 'http://2c5a2359f47be35ac26ec806b5ad4f01@demoapm.appice.io/3',
  tracesSampleRate: 0.0,
  _experiments: {
    profilesSampleRate: 1.0,
  },
});

AppICE.getUserId((userID: any) => {
  if (userID.length > 0) {
    TestApm.setUser({ id: userID });
  }
});
AppICE.getDeviceId((deviceID: any) => {
  if (deviceID.length > 0) {
    TestApm.setContext('device', {
        id: deviceID,
    });
  }
});


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/react-native/libapm.gradle"
just before 
android {
  
}

Keywords

libapm

FAQs

Package last updated on 08 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts