The BugSnag SDK automatically captures a variety of data to help you debug your errors. You may wish to avoid capturing some types of data, particularly if there are privacy implications for your users.
User information is used to show you which errors are impacting the most users. Set your own user identifiers if you want to be able to find errors affecting individual users.
| Data | Default value | Preventing collection | 
|---|---|---|
| User ID | The remote IP address of the request | Modify User.Idin a callback | 
Information about the device can be useful to identify if an error is only occurring on some devices.
| Data | Default value | Preventing collection | 
|---|---|---|
| Hostname | Server host name as identified by os.Hostname() | Modify the Hostnameconfiguration option | 
Details about the request can be helpful to reproduce errors.
| Data | Default value | Preventing collection | 
|---|---|---|
| Client IP | The remote IP address of the request | Override the value of clientIpinMetaData["request"]in a callback | 
| HTTP method | The method used to send the current request | Override the value of httpMethodinMetaData["request"]in a callback | 
| Headers | The headers sent with the request | Override the value of headersinMetaData["request"]in a callback | 
| Params | The URL query parameters | Override the value of paramsinMetaData["request"]in a callback | 
| Request URL | The URL including query parameters | Override the value of urlinMetaData["request"]in a callback | 
Modifying error information may affect error grouping.
| Data | Default value | Preventing collection | 
|---|---|---|
| Context | The request URL path | Append a new value for Contextin a callback | 
| Error class | The name or title of the error that occurred | Modify ErrorClassin a callback | 
| Error message | The description of the error that occurred | Modify Messagein a callback | 
| Stack trace | The list of active method calls (and the file and line number locations) at the point the error was detected | Modify stacktracein a callback |