-
-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathappsettings.json
More file actions
35 lines (35 loc) · 1.56 KB
/
appsettings.json
File metadata and controls
35 lines (35 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
// Example configuration via JSON. Only a subset of the settings below:
// All Sentry settings can also be configured via code or environment variables:
"Sentry": {
// The DSN can also be set via environment variable
//"Dsn": "TODO: Configure your DSN here and uncomment this line",
// Opt-in for payload submission
"MaxRequestBodySize": "Always",
// Sends Cookies, User Id when one is logged on and user IP address to sentry. It's turned off by default.
"SendDefaultPii": true,
// Whether to add System.Diagnostics.Activity data to the event::
// For more: https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md
"IncludeActivityData": true,
// Record any message with this level or higher as a breadcrumb (default is Information)
"MinimumBreadcrumbLevel": "Information",
// Don't only keep Warnings as Breadcrumb but actually send an event
"MinimumEventLevel": "Warning",
// Send the stack trace of captured messages (e.g: a LogWarning without an exception)
"AttachStackTrace": true,
// The flag below can be used to see the internal logs of the SDK in the applications log (it's off by default)
"Debug": true,
// By default the level is Debug but it can be changed to any level of SentryLevel enum
"DiagnosticLevel": "Error",
"DefaultTags": {
"default-key-in-config": "default-value"
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}