Skip to content

Commit 215eddf

Browse files
chore: apply pr review comments
1 parent 5fe801d commit 215eddf

File tree

2 files changed

+4
-37
lines changed

2 files changed

+4
-37
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugAPMModule.java

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ public String getName() {
4343
}
4444

4545
/**
46-
* This method is exporting a method
47-
* named `ibgSleep` to be accessible from JavaScript side. When this method is
48-
* called from JavaScript, it (sleeps) the current thread for 3 seconds.
46+
* Pauses the current thread for 3 seconds.
4947
*/
5048
@ReactMethod
5149
public void ibgSleep() {
@@ -60,13 +58,6 @@ public void run() {
6058
/**
6159
* Enables or disables APM.
6260
*
63-
* This function is exporting a method named
64-
* [setEnabled] to be accessible from JavaScript side. When this method is
65-
* called from JavaScript, it will set the `enabled` property of the [APM] class provided by the
66-
* Instabug SDK to the value passed as the `isEnabled` parameter. This property controls whether the
67-
* APM (Application Performance Monitoring) feature of Instabug is enabled or disabled based on the
68-
* boolean value passed to it.
69-
*
7061
* @param isEnabled boolean indicating enabled or disabled.
7162
*/
7263
@ReactMethod
@@ -86,11 +77,6 @@ public void run() {
8677
/**
8778
* Enables or disables app launch tracking.
8879
*
89-
* This function is exporting a method named
90-
* `setAppLaunchEnabled` to be accessible from JavaScript side. When this
91-
* method is called from JavaScript, it will set the `coldAppLaunchEnabled` property of the `IBGAPM`
92-
* class provided by the Instabug SDK to the value passed as the `isEnabled` parameter.
93-
*
9480
* @param isEnabled boolean indicating enabled or disabled.
9581
*/
9682
@ReactMethod
@@ -108,10 +94,7 @@ public void run() {
10894
}
10995

11096
/**
111-
* This function is exporting a method named `endAppLaunch` to be
112-
* accessible from JavaScript side. When this method is called from
113-
* JavaScript, it will invoke the `endAppLaunch` method from the [APM] class provided by the
114-
* Instabug SDK. This method is used to signal the end of the app launch process.
97+
* This method is used to signal the end of the app launch process.
11598
*/
11699
@ReactMethod
117100
public void endAppLaunch() {
@@ -130,14 +113,6 @@ public void run() {
130113
/**
131114
* Enables or disables auto UI tracing
132115
*
133-
* This function is exporting a method named
134-
* [setAutoUITraceEnabled] to be accessible from JavaScript side. When this
135-
* method is called from JavaScript, it will set the `autoUITraceEnabled` property of the [APM]
136-
* class provided by the Instabug SDK to the value passed as the `isEnabled` parameter. This property
137-
* controls whether automatic tracing of UI interactions is enabled or disabled within the SDK. By
138-
* toggling this property, you can control whether the SDK captures data related to user interface
139-
* performance and behavior automatically.
140-
*
141116
* @param isEnabled boolean indicating enabled or disabled.
142117
*/
143118
@ReactMethod
@@ -310,11 +285,6 @@ public void run() {
310285
/**
311286
* Starts a UI trace
312287
*
313-
* This function is exporting a method named
314-
* [startUITrace] to be accessible from JavaScript side. When this method is
315-
* called from JavaScript, it will invoke the [startUITrace] method from the [APM] class
316-
* provided by the Instabug SDK to start a new UI trace.
317-
*
318288
* @param name string name of the UI trace.
319289
*/
320290
@ReactMethod
@@ -332,10 +302,7 @@ public void run() {
332302
}
333303

334304
/**
335-
* This function is exporting a method named [endUITrace] to be
336-
* accessible from JavaScript side. When this method is called from
337-
* JavaScript, it will invoke the `endUITrace` method from the []APM] class provided by the Instabug
338-
* SDK. This method is used to terminate the currently active UI trace.
305+
* This method is used to terminate the currently active UI trace.
339306
*/
340307
@ReactMethod
341308
public void endUITrace() {

src/modules/APM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const setAppLaunchEnabled = (isEnabled: boolean) => {
2424
/**
2525
* To define when an app launch is complete,
2626
* such as when it's intractable, use the end app launch API.
27-
* You can then view this data with the automatic cold app launche.
27+
* You can then view this data with the automatic cold app launch.
2828
*/
2929
export const endAppLaunch = () => {
3030
NativeAPM.endAppLaunch();

0 commit comments

Comments
 (0)