Skip to main content

Privacy and network traffic (Beta)

Disabling network traffic collection​

Network traffic collection can be disabled completely using the monitorNetwork launch option. See configuration for more info.

Sanitizing data​

Bugsee captures network activity and stores headers and, in some cases, the body of requests and responses. To hide user-identifiable or sensitive data, set a filter callback that Bugsee calls for every network event about to be recorded.

Return null from the filter to suppress the event entirely.

Bugsee.setNetworkEventFilter { event ->
event?.let {
// Redact authorization headers
it.headers = it.headers?.filterKeys { key ->
!key.equals("Authorization", ignoreCase = true)
}
// Redact sensitive URLs
if (it.url?.contains("/api/auth") == true) {
it.body = "[REDACTED]"
}
it
}
}

The callback is called multiple times for each request depending on its lifecycle — usually twice for successful requests: once with the request event and once after completion with the response.

Found an issue, typo, or wrong statement on this page? Report it now →