Android Configuration File
Certain SDK configs are only settable in a custom embrace-config.json
file.
This file should be located in app/src/main.
The following is an example embrace-config.json
file.
Explanations for each of the fields are provided below.
{
"app_id": "NNNNN",
"api_token": "0123456789abcdef0123456789abcdef",
"ndk_enabled": true,
"sdk_config": {
"automatic_data_capture": {
"memory_info": true,
"power_save_mode_info": true,
"network_connectivity_info": true,
"anr_info": true
},
"taps": {
"capture_coordinates": true
},
"view_config": {
"enable_automatic_activity_capture": false
},
"webview": {
"capture_query_params": false,
"enable": true
},
"crash_handler": {
"enabled": true
},
"compose": {
"capture_compose_onclick": true
},
"capture_fcm_pii_data": true,
"networking": {
"default_capture_limit": 0,
"domains": [
{
"domain_name": "example.com",
"domain_limit": 0
}
],
"capture_request_content_length": false,
"disabled_url_patterns": ["example.com"],
"enable_native_monitoring": false,
"enable_network_span_forwarding": false
},
"capture_public_key": "ABCDEFGH",
"sensitive_keys_denylist": ["secret", "password"],
"anr": {
"capture_unity_thread": false
},
"app": {
"report_disk_usage": false
},
"background_activity": {
"capture_enabled": true
},
"base_urls": {
"config": "ABCDEFGH",
"data": "ABCDEFGH"
},
"session": {
"components": ["ABCDEFGHIJKLMNOPQRSTUV"],
"send_full_for": ["ABCDEFGHIJKLMNOPQRST"]
},
"sig_handler_detection": false,
"app_exit_info": {
"aei_enabled": true
},
"app_framework": "native"
},
"unity": {
"symbols_archive_name": "ABCDEFG"
}
}
app_id string, required
Your 5 character app ID.
api_token string, required
Your API 32-hexdigit token.
ndk_enabled bool
Enables NDK crash capture. Defaults to false
.
automatic_data_capture - memory_info bool
Enables memory warning capture. Defaults to true
.
automatic_data_capture - power_save_mode_info bool
Enables power save mode capture. Defaults to true
.
automatic_data_capture - network_connectivity_info bool
Enables network connectivity capture. Defaults to true
.
automatic_data_capture - anr_info bool
Enables ANR capture. Defaults to true
.
taps - capture_coordinates bool
Set to false to disable capturing tap coordinates. Defaults to true
.
view_config - enable_automatic_activity_capture bool
Enables capturing activity lifecycle changes in breadcrumbs. Defaults to true
.
webview - capture_query_params bool
Set to false to disable capturing of web view query parameters. Defaults to true
.
webview - enable bool
Set to false to disable capturing of web views. Defaults to true
.
crash_handler - enabled bool
Set to false to prevent the SDK from connecting to the uncaught exception handler. Defaults to true
.
compose - capture_compose_onclick bool
Enables capture of Jetpack Compose click events. Defaults to false
.
capture_fcm_pii_data bool
Enables PII data within FCM capture. Defaults to false
.
networking - default_capture_limit integer
Default capture limit for specified domains. Defaults to 1000
.
networking - domains object array
List of domain names and their respective limits.
networking - domain_name string
Domain URL.
networking - domain_limit integer
Limit for the number of requests to be tracked.
networking - capture_request_content_length bool
Disable capture of network length which can interfere with certain streaming network requests. Defaults to true
.
networking - disabled_url_patterns string array
Specify one or more regular expressions to exclude network request with URLs matching one of the regular expressions from being captured.
Example:
"disabled_url_patterns": [".*"], // Will disable network calls for all URLs
networking - enable_native_monitoring bool
Enable capture of network requests made using the native Java network API. Defaults to true
.
networking - enable_network_span_forwarding bool
Enables network span forwarding. Defaults to false
.
capture_public_key string
Declares the key that should be used to capture network request bodies, if any.
sensitive_keys_denylist string array
List of keys that will be redacted from any key-value pair sent by the SDK, such as event attributes, span attributes, log attributes, and session properties. Values for keys present in this list will be replaced by a <redacted>
string
Example:
"sensitive_keys_denylist": ["secret"] // Will change to <redacted> any value tied to a "secret" key
anr - capture_unity_thread bool
Enables Unity ANR capture. Defaults to false
.