@@ -43,7 +43,7 @@ public String getName() {
4343 }
4444
4545 /**
46- * Sets the printed logs priority. Filter to one of the following levels .
46+ * Pauses the current thread for 3 seconds .
4747 */
4848 @ ReactMethod
4949 public void ibgSleep () {
@@ -57,6 +57,7 @@ public void run() {
5757
5858 /**
5959 * Enables or disables APM.
60+ *
6061 * @param isEnabled boolean indicating enabled or disabled.
6162 */
6263 @ ReactMethod
@@ -75,6 +76,7 @@ public void run() {
7576
7677 /**
7778 * Enables or disables app launch tracking.
79+ *
7880 * @param isEnabled boolean indicating enabled or disabled.
7981 */
8082 @ ReactMethod
@@ -92,7 +94,7 @@ public void run() {
9294 }
9395
9496 /**
95- * Ends app launch
97+ * This method is used to signal the end of the app launch process.
9698 */
9799 @ ReactMethod
98100 public void endAppLaunch () {
@@ -110,6 +112,7 @@ public void run() {
110112
111113 /**
112114 * Enables or disables auto UI tracing
115+ *
113116 * @param isEnabled boolean indicating enabled or disabled.
114117 */
115118 @ ReactMethod
@@ -281,6 +284,7 @@ public void run() {
281284
282285 /**
283286 * Starts a UI trace
287+ *
284288 * @param name string name of the UI trace.
285289 */
286290 @ ReactMethod
@@ -298,7 +302,7 @@ public void run() {
298302 }
299303
300304 /**
301- * Ends the current running UI trace
305+ * This method is used to terminate the currently active UI trace.
302306 */
303307 @ ReactMethod
304308 public void endUITrace () {
@@ -314,6 +318,73 @@ public void run() {
314318 });
315319 }
316320
321+ /**
322+ * The `networkLogAndroid` function logs network-related information using APMNetworkLogger in a React
323+ * Native module.
324+ *
325+ * @param requestStartTime The `requestStartTime` parameter in the `networkLogAndroid` method
326+ * represents the timestamp when the network request started. It is of type `double` and is passed as
327+ * a parameter to log network-related information.
328+ * @param requestDuration The `requestDuration` parameter in the `networkLogAndroid` method represents
329+ * the duration of the network request in milliseconds. It indicates the time taken for the request to
330+ * complete from the moment it was initiated until the response was received. This parameter helps in
331+ * measuring the performance of network requests and identifying any potential
332+ * @param requestHeaders requestHeaders is a string parameter that contains the headers of the network
333+ * request. It typically includes information such as the content type, authorization token, and any
334+ * other headers that were sent with the request.
335+ * @param requestBody The `requestBody` parameter in the `networkLogAndroid` method represents the
336+ * body of the HTTP request being logged. It contains the data that is sent as part of the request to
337+ * the server. This could include form data, JSON payload, XML data, or any other content that is
338+ * being transmitted
339+ * @param requestBodySize The `requestBodySize` parameter in the `networkLogAndroid` method represents
340+ * the size of the request body in bytes. It is a double value that indicates the size of the request
341+ * body being sent in the network request. This parameter is used to log information related to the
342+ * network request, including details
343+ * @param requestMethod The `requestMethod` parameter in the `networkLogAndroid` method represents the
344+ * HTTP method used in the network request, such as GET, POST, PUT, DELETE, etc. It indicates the type
345+ * of operation that the client is requesting from the server.
346+ * @param requestUrl The `requestUrl` parameter in the `networkLogAndroid` method represents the URL
347+ * of the network request being logged. It typically contains the address of the server to which the
348+ * request is being made, along with any additional path or query parameters required for the request.
349+ * This URL is essential for identifying the
350+ * @param requestContentType The `requestContentType` parameter in the `networkLogAndroid` method
351+ * represents the content type of the request being made. This could be values like
352+ * "application/json", "application/xml", "text/plain", etc., indicating the format of the data being
353+ * sent in the request body. It helps in specifying
354+ * @param responseHeaders The `responseHeaders` parameter in the `networkLogAndroid` method represents
355+ * the headers of the response received from a network request. These headers typically include
356+ * information such as content type, content length, server information, and any other metadata
357+ * related to the response. The `responseHeaders` parameter is expected to
358+ * @param responseBody The `responseBody` parameter in the `networkLogAndroid` method represents the
359+ * body of the response received from a network request. It contains the data or content sent back by
360+ * the server in response to the request made by the client. This could be in various formats such as
361+ * JSON, XML, HTML
362+ * @param responseBodySize The `responseBodySize` parameter in the `networkLogAndroid` method
363+ * represents the size of the response body in bytes. It is a double value that indicates the size of
364+ * the response body received from the network request. This parameter is used to log information
365+ * related to the network request and response, including
366+ * @param statusCode The `statusCode` parameter in the `networkLogAndroid` method represents the HTTP
367+ * status code of the network request/response. It indicates the status of the HTTP response, such as
368+ * success (200), redirection (3xx), client errors (4xx), or server errors (5xx). This parameter is
369+ * @param responseContentType The `responseContentType` parameter in the `networkLogAndroid` method
370+ * represents the content type of the response received from the network request. It indicates the
371+ * format of the data in the response, such as JSON, XML, HTML, etc. This information is useful for
372+ * understanding how to parse and handle the
373+ * @param errorDomain The `errorDomain` parameter in the `networkLogAndroid` method is used to specify
374+ * the domain of an error, if any occurred during the network request. If there was no error, this
375+ * parameter will be `null`.
376+ * @param w3cAttributes The `w3cAttributes` parameter in the `networkLogAndroid` method is a
377+ * ReadableMap object that contains additional attributes related to W3C external trace. It may
378+ * include the following key-value pairs:
379+ * @param gqlQueryName The `gqlQueryName` parameter in the `networkLogAndroid` method represents the
380+ * name of the GraphQL query being executed. It is a nullable parameter, meaning it can be null if no
381+ * GraphQL query name is provided. This parameter is used to log information related to GraphQL
382+ * queries in the network logging
383+ * @param serverErrorMessage The `serverErrorMessage` parameter in the `networkLogAndroid` method is
384+ * used to pass any error message received from the server during network communication. This message
385+ * can provide additional details about any errors that occurred on the server side, helping in
386+ * debugging and troubleshooting network-related issues.
387+ */
317388 @ ReactMethod
318389 private void networkLogAndroid (final double requestStartTime ,
319390 final double requestDuration ,
0 commit comments