Embrace’s SDK uploads information about network requests into your sessions to help you understand and troubleshoot networking problems for iOS; https://embrace.io/docs/ios/features/network-body-capture/ and Android; https://embrace.io/docs/android/features/network-body-capture/ (Embrace SDK version 5.13.0 and above). Embrace can also capture the network body, including the request, response, and headers. As of May 2023, we do not support network body capture for Flutter or Unity apps or the ability to turn on network body capture for all errors at one time. To enable this functionality, we need to know the specific codes and methods. 


This feature can only be enabled by your Embrace representative. Please reach out on Slack or via support@embrace.io to set this up. 


*For Android apps, the network body capture feature is supported in SDK versions Android SDK 5.13.0 and above. Additionally, please make sure you have the following property set as true in your embrace-config.json file before reaching out to Support. Our configuration documents can be found here.


{

  "app_id": "XXXX",

  "api_token": "XXXX",

  "sdk_config": {

    "networking": {

        "capture_request_content_length": true

    }

}        


Important to note: Network bodies are not captured by default with our service. Therefore, we are not able to provide historical data. However, we can turn on this service on a request-by-request basis for short periods.


In your request please include: 

  1. The Embrace App ID 
  2. Domain and the corresponding path,
  3. Method type (POST/GET/etc.)
  4. Status codes (Ex: 501), 
  5. How long you'd like to run the request depends on the error frequency.
  6. Once you receive the network bodies from our support team, please refer to this article for instructions on interpreting the keys in the network bodies.