Skip to content

Commit 009287a

Browse files
authored
Add "Data Collected" page for Godot SDK (and more) (#13533)
1 parent c6a8c99 commit 009287a

File tree

7 files changed

+90
-0
lines changed

7 files changed

+90
-0
lines changed

docs/platforms/godot/configuration/options.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ If enabled, the SDK will attach the Godot log file to the event.
9696

9797
</ConfigKey>
9898

99+
<ConfigKey name="attach-screenshot">
100+
101+
If enabled, the SDK will try to take a screenshot and attach it to the event.
102+
103+
</ConfigKey>
104+
99105
## Error Logger Options
100106

101107
<ConfigKey name="logger-enabled">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Data Collected
3+
description: "See what data is collected by the Sentry SDK."
4+
sidebar_order: 1
5+
---
6+
7+
Sentry takes data privacy very seriously and has default settings in place that prioritize data safety, especially when it comes to personally identifiable information (PII) data. When you add the Sentry SDK to your application, you allow it to collect data and send it to Sentry during the runtime of your application.
8+
9+
The category types and amount of data collected vary, depending on the integrations you've enabled in the Sentry SDK. Here's a list of data categories the Sentry Native SDK collects:
10+
11+
## User Information
12+
13+
By default, the Sentry SDK doesn't send any information about users, such as email address, user ID, or username. However, if the <PlatformLink to="/configuration/options/#send-default-pii">`send_default_pii` option</PlatformLink> is enabled, Sentry backend services will infer the user's IP address based on the incoming request.
14+
15+
You can also set user information from code:
16+
17+
```GDScript
18+
var user := SentryUser.new()
19+
user.id = "custom_id"
20+
user.email = "[email protected]"
21+
user.username = "bob"
22+
user.ip_address = "127.0.0.1"
23+
SentrySDK.set_user(user)
24+
```
25+
26+
## Device Information
27+
28+
The Sentry SDK collects information about the device, such as the name, version and build of your operating system or Linux distribution. This information is sent to Sentry by default.
29+
30+
## Screenshots
31+
32+
The <PlatformLink to="/enriching-events/screenshots">screenshot feature</PlatformLink> is disabled by default. If you choose to enable this feature in options, any screenshots captured may contain sensitive data visible in the application at the time of the error.
33+
34+
## Godot Log File
35+
36+
By default, the Sentry SDK automatically attaches the Godot log file to events it sends. Since this log file contains all messages printed in your code and by the engine itself, it may inadvertently include sensitive information. To enhance privacy protection, you can disable the <PlatformLink to="/configuration/options/#attach-log">`attach_log` option</PlatformLink> in the Godot Project Settings.
37+
38+
## Thread Stack Information
39+
40+
At the time of a crash, the stack of each thread is collected and sent to Sentry as part of the Minidump snapshot for `crashpad` backend. This information is sent to Sentry by default, but dropped after processing the event in the backend.
41+
42+
These files are not stored by default, but you can <PlatformLink to="/data-management/store-minidumps-as-attachments/">enable Minidump Storage</PlatformLink> in the Sentry organization or project settings.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Store Minidumps As Attachments"
3+
description: "Learn how to enable storing minidumps as attachments in issue details."
4+
sidebar_order: 90
5+
---
6+
7+
8+
<Include name="store-minidumps-as-attachments-intro" />
9+
<Include name="store-minidumps-as-attachments-configuration" />
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "Screenshots"
3+
description: "Learn more about taking screenshots when an error occurs. Sentry pairs the screenshot with the original event, giving you additional insight into issues."
4+
---
5+
6+
Sentry makes it possible to automatically take a screenshot and include it as an attachment when a user experiences an error, an exception or a crash.
7+
8+
This feature is only available for SDKs with a user interface, like the ones for mobile and desktop applications. It's also limited by whether taking a screenshot is possible or not. For example, in some environments, like native iOS, taking a screenshot requires the UI thread, which often isn't available in the event of a crash. Another example where a screenshot might not be available is when the event happens before the screen starts to load. So inherently, this feature is a best effort solution.
9+
10+
## Enabling Screenshots
11+
12+
Because screenshots may contain <PlatformLink to="/data-management/sensitive-data/">PII</PlatformLink>, they are an opt-in feature. To attach screenshots to your events, navigate to **Project Settings > Sentry > Options** and enable the **Attach Screenshot** option:
13+
14+
![Enabling Screenshots in Project Settings](./img/project-settings.png)
15+
16+
Or, like so, if you're <PlatformLink to="/configuration/options/">configuring things programatically</PlatformLink>:
17+
18+
```GDScript
19+
extends SentryConfiguration
20+
21+
func _configure(options: SentryOptions):
22+
options.attach_screenshot = true
23+
```
24+
25+
## Viewing Screenshots
26+
27+
If one is available, you'll see a thumbnail of the screenshot when you click on a specific issue from the [**Issues**](https://demo.sentry.io/issues/) page.
28+
29+
![Screenshot Thumbnail](./img/screenshot-thumbnail.png)
30+
31+
You can see an overview of all the screenshots for the issue as well as associated events by pressing the "View All" button.
32+
33+
![Screenshots List Example](./img/screenshot-list-example.png)

0 commit comments

Comments
 (0)