Privacy and Network traffic
Disabling network traffic collection
Network traffic collection can be disabled completely using MonitorNetwork launch option. See configuration for more info.
Bugsee captures network activity from the application and stores headers and in some cases body of the request and response. In order to allow you to hide user identifiable and other sensitive data from these network logs, we provide you with the ability to set your own filter via a callback we will call for every event about to be recorded.
For every event to be recorded, Bugsee will call your method and provide you with an object implementing IBugseeNetworkEvent. It is your method's responsibility to clean up all user identifiable data from that structure and call provided handler() to pass it back to Bugsee.
You should pass a callback method (either as delegate or anonymous function) of BugseeNetworkEventFilterHandler to Bugsee.SetNetworkEventFilter().
var rgx = new System.Text.RegularExpressions.Regex("token=[^&]+", RegexOptions.IgnoreCase);
Bugsee.SetNetworkEventFilter(delegate (IBugseeNetworkEvent netEvent, BugseeNetworkEventFilterDecisionHandler handler)
netEvent.Url = rgx.Replace(netEvent.Url, "<redacted>");
// Pass null here to filter out that event
// To stop using provided filter callback, just pass null
The callback is going to be called several times for each network request, depending on its life cycle. Usually for successful requests its going to be called twice, once with the request event (request headers and body) and one more time after completion and will contain headers and body of the response. Note that callback can be called more times, initially without body and then with it for both request and response.
|Raw body of the request or response where available.
|Type of network event
|Can be one of Before, Complete, Error, Cancel
|HTTP error information
|HTTP Request Method
|'GET', 'POST', etc...
|Reason why body was not captured
|Can be one of None, SizeTooLarge, UnsupportedContentType, NoContentType, CantReadData
|URL of Network event that we were redirected from
|HTTP response code
|200, 304, 404, etc
|Network event URL