You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Enhanced - Include `async`, return type, arguments, and more.
29
-
30
-
Before version 3.0.0 of the Sentry SDK for .NET, there was no special treatment for the stack trace. Sentry reported what .NET made available at runtime.
31
-
This behavior now called `StackTraceMode.Original`. With the introduction of 3.0, a new default mode is `Enhanced`.
32
-
33
-
<Alert>
25
+
<ConfigKeyname="environment">
34
26
35
-
Changing this value will affect issue grouping. Since the frame significantly changes shape.
27
+
Sets the environment. This string is freeform and set by default. A release can be associated with more than one environment to separate them in the UI (think `staging` vs `prod` or similar).
36
28
37
-
</Alert>
29
+
By default, the SDK reports `editor` when running inside the Unity Editor. Otherwise, the default environment is `production`.
Sets the release. The SDKk will try to automatically configure a release out of the box. Release names are strings, but some formats are detected by Sentry and might be rendered differently. Learn more about how to send release data so Sentry can tell you about regressions between releases and identify the potential source in [the releases documentation](/product/releases/) or the <SandboxLinkscenario="releases">sandbox</SandboxLink>.
57
36
58
-
Allows you to specify a path to the local event- and crash-database of the Native SDK. This path will default to `.sentry-native` relative to the current working directory (`CWD`). While this is a convenient setting for development, we strongly urge you to provide an explicit database path for our production deployments. In many deployment scenarios, the path relative to the `CWD` will not be writable. For this reason, you should store the database in your application's user-specific data/cache directory (e.g., under `%AppData%\Local` on Windows, `~/Library/Application Support` on macOS, or `XDG_CACHE_HOME` on Linux).
37
+
By default the SDKwill read from `Application.productName` and `Application.version`to create the release in the format `$"{Application.productName}@{Application.version}".`
Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging information if something goes wrong with sending the event. The default is always `false`. It's generally not recommended to turn it on in production, though turning `debug` mode on will not cause any safety concerns.
Enabling `debug` mode makes the SDK generate as much diagnostic data as possible. However, if you'd prefer to lower the verbosity of the Sentry SDK diagnostics logs, configure this option to set the appropriate level:
80
50
@@ -84,35 +54,25 @@ Enabling `debug` mode makes the SDK generate as much diagnostic data as possible
84
54
-`error`: Only SDK internal errors are printed
85
55
-`fatal`: Only critical errors are printed
86
56
87
-
</ConfigKey>
88
-
89
57
For app models that don't have a console to print to, you can <PlatformLinkto="/configuration/diagnostic-logger/">customize the SDK's diagnostic logger</PlatformLink> to write to a file or to Visual Studio's debug window.
90
58
91
-
<ConfigKeyname="dist">
92
-
93
-
Sets the distribution of the application. Distributions are used to disambiguate build or deployment variants of the same release of an application. For example, the dist can be the build number of an Xcode build or the version code of an Android build. The dist has a max length of 64 characters.
94
-
95
59
</ConfigKey>
96
60
97
-
<ConfigKeyname="release">
98
-
99
-
Sets the release. Some SDKs will try to automatically configure a release out of the box but it's a better idea to manually set it to guarantee that the release is in sync with your deploy integrations or source map uploads. Release names are strings, but some formats are detected by Sentry and might be rendered differently. Learn more about how to send release data so Sentry can tell you about regressions between releases and identify the potential source in [the releases documentation](/product/releases/) or the <SandboxLinkscenario="releases">sandbox</SandboxLink>.
61
+
## Data Enrichment & Attachments
100
62
101
-
By default the SDK will read from `Application.productName` and `Application.version` to create the release in the format `$"{Application.productName}@{Application.version}".`
102
-
103
-
</ConfigKey>
104
-
105
-
<ConfigKeyname="environment">
63
+
<ConfigKeyname="in-app-include">
106
64
107
-
Sets the environment. This string is freeform and set by default. A release can be associated with more than one environment to separate them in the UI (think `staging` vs `prod` or similar).
65
+
A list of string prefixes of module names that belong to the app. This option takes precedence over `in-app-exclude`.
108
66
109
-
By default, the SDK reports `editor` when running inside the Unity Editor. Otherwise, the default environment is `production`.
67
+
Sentry differentiates stack frames that are directly related to your game ("in application") from stack frames that come from other packages such as the standard library, third party plugins, or other dependencies. The game's code that is part of the 'Assembly-CSharp' is automatically marked as `inApp`. The difference is visible in [sentry.io](https://sentry.io), where only the "in application" frames are displayed by default.
110
68
111
69
</ConfigKey>
112
70
113
-
<ConfigKeyname="sample-rate">
71
+
<ConfigKeyname="in-app-exclude">
114
72
115
-
Configures the sample rate for error events, in the range of `0.0` to `1.0`. The default is `1.0`, which means that 100% of error events will be sent. If set to `0.1`, only 10% of error events will be sent. Events are picked randomly.
73
+
A list of string prefixes of module names that do not belong to the app, but rather to third-party packages. Modules considered not part of the app will be hidden from stack traces by default.
74
+
75
+
This option can be overridden using <PlatformIdentifiername="in-app-include" />.
116
76
117
77
</ConfigKey>
118
78
@@ -122,9 +82,9 @@ This variable controls the total amount of breadcrumbs that should be captured.
122
82
123
83
</ConfigKey>
124
84
125
-
<ConfigKeyname="max-cache-items">
85
+
<ConfigKeyname="attach-screenshot">
126
86
127
-
The maximum number of [envelopes](https://develop.sentry.dev/sdk/data-model/envelopes/) to keep in cache. The SDKs use envelopes to send data, such as events, attachments, user feedback, and sessions to sentry.io. An envelope can contain multiple items, such as an event with a session and two attachments. Depending on the usage of the SDK, the size of an envelope can differ. If the number of envelopes in the local cache exceeds `max-cache-items`, the SDK deletes the oldest envelope and migrates the sessions to the next envelope to maintain the integrity of your release health stats. The default is `30`.
87
+
This variable controls the total amount of breadcrumbs that should be captured. This defaults to `100`, but you can set this to any number. Just be aware that Sentry has a [maximum payload size](https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits)and any events exceeding that payload size will be dropped.
128
88
129
89
</ConfigKey>
130
90
@@ -136,68 +96,70 @@ Grouping in Sentry is different for events with stack traces and without. As a r
136
96
137
97
</ConfigKey>
138
98
139
-
<ConfigKeyname="send-default-pii">
99
+
<ConfigKeyname="attach-screenshot">
140
100
141
-
If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent.
101
+
Takes a screenshot of the application when an error happens and includes it as an attachment.
102
+
Learn more about enriching events with screenshots in our <PlatformLinkto="/enriching-events/screenshots/">Screenshots documentation</PlatformLink>.
142
103
143
-
<Alert>
104
+
</ConfigKey>
144
105
145
-
If you are using Sentry in your mobile app, read our [frequently asked questions about mobile data privacy](/security-legal-pii/security/mobile-privacy/) to assist with Apple App Store and Google Play app privacy details.
106
+
<ConfigKeyname="screenshot-quality">
146
107
147
-
</Alert>
108
+
The quality of the attached screenshot. It can be set to `full`, `high`, `medium` or `low`.
148
109
149
-
This option is turned off by default.
110
+
</ConfigKey>
150
111
151
-
If you enable this option, be sure to manually remove what you don't want to send using our features for managing [_Sensitive Data_](../../data-management/sensitive-data/).
112
+
<ConfigKeyname="attach-view-hierarchy">
152
113
153
-
</ConfigKey>
114
+
Captures the currently active scene's hierarchy and creates a `ViewHierarchy` when an error happens and includes it as an attachment. The creation is influenced by `MaxViewHierarchyRootObjects`, `MaxViewHierarchyDepth`, and `MaxViewHierarchyObjectChildCount`.
154
115
155
-
<ConfigKeyname="server-name">
116
+
</ConfigKey>
156
117
157
-
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
118
+
<ConfigKeyname="send-client-reports">
158
119
159
-
For ASP.NET and ASP.NET Core applications, the value will default to the server's name. For other application types, the value will default to the computer's name only when the `SendDefaultPii` is set to `true`, because the computer's name can be considered personally identifiable information (PII) in the case of a desktop or mobile application.
120
+
Set this boolean to `false` to disable sending of client reports. Client reports are a protocol feature that let clients send status reports about themselves to Sentry. They are currently mainly used to emit outcomes for events that were never sent.
160
121
161
122
</ConfigKey>
162
123
163
-
<ConfigKeyname="in-app-include">
164
-
165
-
A list of string prefixes of module names that belong to the app. This option takes precedence over `in-app-exclude`.
124
+
<ConfigKeyname="capture-failed-requests">
166
125
167
-
Sentry differentiates stack frames that are directly related to your application ("in application") from stack frames that come from other packages such as the standard library, frameworks, or other dependencies. The application package is automatically marked as `inApp`. The difference is visible in [sentry.io](https://sentry.io), where only the "in application" frames are displayed by default.
126
+
Once enabled, this feature automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry.
168
127
169
128
</ConfigKey>
170
129
171
-
<ConfigKeyname="in-app-exclude">
172
-
173
-
A list of string prefixes of module names that do not belong to the app, but rather to third-party packages. Modules considered not part of the app will be hidden from stack traces by default.
130
+
<ConfigKeyname="is-global-mode-enabled">
174
131
175
-
This option can be overridden using <PlatformIdentifiername="in-app-include" />.
132
+
Defaults to `true`. Specifies whether to use global scope management mode. Should be `true` for client applications and `false` for server applications.
176
133
177
134
</ConfigKey>
178
135
179
-
<ConfigKeyname="attach-screenshot">
136
+
<ConfigKeyname="distribution">
180
137
181
-
Takes a screenshot of the application when an error happens and includes it as an attachment.
182
-
Learn more about enriching events with screenshots in our <PlatformLinkto="/enriching-events/screenshots/">Screenshots documentation</PlatformLink>.
138
+
Sets the distribution of the application. Distributions are used to disambiguate build or deployment variants of the same release of an application. For example, the dist can be the build number of an Xcode build or the version code of an Android build. The dist has a max length of 64 characters.
183
139
184
140
</ConfigKey>
185
141
186
-
<ConfigKeyname="screenshot-quality">
142
+
## Privacy & PII
187
143
188
-
The quality of the attached screenshot. It can be set to `full`, `high`, `medium` or `low`.
144
+
<ConfigKeyname="send-default-pii">
189
145
190
-
</ConfigKey>
146
+
If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent.
191
147
192
-
<ConfigKeyname="send-client-reports">
148
+
<Alert>
193
149
194
-
Set this boolean to `false` to disable sending of client reports. Client reports are a protocol feature that let clients send status reports about themselves to Sentry. They are currently mainly used to emit outcomes for events that were never sent.
150
+
If you are using Sentry in your mobile app, read our [frequently asked questions about mobile data privacy](/security-legal-pii/security/mobile-privacy/) to assist with Apple App Store and Google Play app privacy details.
151
+
152
+
</Alert>
153
+
154
+
This option is turned off by default.
155
+
156
+
If you enable this option, be sure to manually remove what you don't want to send using our features for managing [_Sensitive Data_](../../data-management/sensitive-data/).
195
157
196
158
</ConfigKey>
197
159
198
-
<ConfigKeyname="capture-failed-requests">
160
+
<ConfigKeyname="server-name">
199
161
200
-
Once enabled, this feature automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry.
162
+
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
201
163
202
164
</ConfigKey>
203
165
@@ -243,7 +205,7 @@ A callback function that controls view hierarchy capture behavior. Return `false
243
205
244
206
</ConfigKey>
245
207
246
-
## Transport Options
208
+
## Transport & Network Options
247
209
248
210
Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments.
249
211
@@ -253,20 +215,18 @@ Switches out the transport used to send events. How this works depends on the SD
253
215
254
216
</ConfigKey>
255
217
256
-
<ConfigKeyname="http-proxy">
218
+
<ConfigKeyname="max-cache-items">
257
219
258
-
When set, a proxy can be configured that should be used for outbound requests. This is also used for HTTPS requests unless a separate `https-proxy` is configured. However, not all SDKs support a separate HTTPS proxy. SDKs will attempt to default to the system-wide configured proxy, if possible. For instance, on Unix systems, the `http_proxy` environment variable will be picked up.
220
+
The maximum number of [envelopes](https://develop.sentry.dev/sdk/data-model/envelopes/) to keep in cache. The SDKs use envelopes to send data, such as events, attachments, user feedback, and sessions to sentry.io. An envelope can contain multiple items, such as an event with a session and two attachments. Depending on the usage of the SDK, the size of an envelope can differ. If the number of envelopes in the local cache exceeds `max-cache-items`, the SDK deletes the oldest envelope and migrates the sessions to the next envelope to maintain the integrity of your release health stats. The default is `30`.
259
221
260
222
</ConfigKey>
261
223
262
-
<ConfigKeyname="cache-directory-path">
224
+
<ConfigKeyname="http-proxy">
263
225
264
-
Specifies a local directory used for caching payloads. When this option is enabled (that is, when the directory is set), the Sentry SDK will persist envelopes locally before sending to Sentry. This configuration option is particularly useful if you expect your application to run in environments where internet connectivity is limited.
226
+
When set, a proxy can be configured that should be used for outbound requests. This is also used for HTTPS requests unless a separate `https-proxy`is configured. However, not all SDKs support a separate HTTPS proxy. SDKs will attempt to default to the system-wide configured proxy, if possible. For instance, on Unix systems, the `http_proxy` environment variable will be picked up.
265
227
266
228
</ConfigKey>
267
229
268
-
The default value is `Application.persistentDataPath`. You can disable offline caching by setting it to `null`.
269
-
270
230
<ConfigKeyname="init-cache-flush-timeout">
271
231
272
232
When caching is enabled (that is, <PlatformIdentifiername="cache-directory-path" /> is set), this option controls the timeout that limits how long the SDK will attempt to flush existing cache during initialization. Note that flushing the cache involves sending the payload to Sentry in a blocking operation. Setting this option to zero means that Sentry will **not** attempt to flush the cache during initialization, but instead will do so when the next payload is queued up.
@@ -294,3 +254,15 @@ A number between `0` and `1`, controlling the percentage chance a given transact
294
254
A function responsible for determining the percentage chance a given transaction will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between `0` (0% chance of being sent) and `1` (100% chance of being sent). Can also be used for filtering transactions, by returning 0 for those that are unwanted. Either this or <PlatformIdentifiername="traces-sample-rate" /> must be defined to enable tracing.
295
255
296
256
</ConfigKey>
257
+
258
+
<ConfigKeyname="auto-startup-traces">
259
+
260
+
Controls whether the SDK will automatically trace the app's startup.
261
+
262
+
</ConfigKey>
263
+
264
+
<ConfigKeyname="auto-scene-traces">
265
+
266
+
Controls whether the SDK will automatically trace when loading scenes.
0 commit comments