Real user instrumentation for your react-native application.
This API documentation describes the JavaScript interface exposed by the agent. Installation instructions are provided in the package's README file. More information on AppDynamics Real User Monitoring is available on the documentation website.
Comprehensive setup instructions are provided in the package's README file.
The main API entry point for this module is the Instrumentation object. Bring it into scope with:
import { Instrumentation } from '@appdynamics/react-native-agent';
Copyright 2019 AppDynamics LLC and its affiliates.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
The exception name, may be null
if no exception occured.
The exception's reason, may be null
if no exception occured.
The exception's signal code.
The exception's signal name.
Binds the TypeScript application code to the native code of EveryFeature.
The string representation of function arguments will be truncated to this number of characters.
Maximum length for class names returned by
Base URL used to make network requests when the application runs in a (presumably automated) local test environment.
Base URL used to make network requests when the application runs in a manual "real world" setup.
Annotate methods you wish to be reported as InfoPoint to eum-cloud.
Consider the following critical method which you wish to be reported as InfoPoint to eum-cloud.
public infoPointMethod(arg1, arg2, value) {
console.log("Executing infoPointMethod!");
}
For convenience purpose, you can simply annotate your methods without having to modify the code to manually report InfoPoints.
@InfoPoint
public infoPointMethod(arg1, arg2, value) {
console.log("Executing infoPointMethod!");
}
Your method will automatically report info points to the eum cloud.
Warning: If your code gets minified, the info point will report useless class and function names. You can either turn off minification for the annotated symbols, or you can manually specify the symbol names.
To manually specify symbol names, pass a parameter to the InfoPoint
decorator like this.
@InfoPoint({ className: 'MyClass', fnName: 'infoPointMethod' })
public infoPointMethod(arg1, arg2, value) {
console.log("Executing infoPointMethod!");
}
Alternatively, you can exclude classes and functions from minification in the following way.
metro-minify-terser
metro.config.js
configuration file:transformer: {
minifierPath: 'metro-minify-terser',
minifierConfig: {
// see: https://www.npmjs.com/package/terser
keep_fnames: true,
module: true
}
}
Applies a patch to a given file.
true if the patch was applied, false if it was skipped.
Basic unique id generator, not suited for cryptography.
Finds the index at which to insert the patch.
The string index where to insert the patch, or undefined if it failed to find the location.
Translates function arguments and return types to a serializable form suitable for the rn-bridge.
Generated using TypeDoc
Uniquely defines the crash, can be used as key to find full crash report.