Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions platform-includes/getting-started-config/powershell.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Once this is done, Sentry's PowerShell SDK can be used to capture errors.
# You may need to import the module if you've just installed it.
Import-Module Sentry

# Start the Sentry SDK with the default options.
Start-Sentry '___PUBLIC_DSN___'
Start-Sentry {
# You can set it in the SENTRY_DSN environment variable, or you can set it in code here.
$_.Dsn = '___PUBLIC_DSN___'

# If you'd like to include data that potentially includes PII, such as Machine Name
$_.SendDefaultPii = true
}
```
Loading