To show how Sentry works in the ASP.NET Core SDK.
- how to integrate the SDK into ASP.NET CORE (https://docs.sentry.io/platforms/dotnet/aspnetcore/)
- trigger an error that gets sent as Event to Sentry.io Platform
./AspNetCoreMvc/Controllers/HomeController.cs
contains the REST endpoints for triggering errors captured by Sentry SDK and sent as Events to Sentry- The Sentry release cycle is covered in
./AspNetCoreMvc/deploy.ps1
- Configure your DSN in appsettings.json
- Configure your org slug and project slug in deploy.ps1
- Powershell
pwsh
cd AspNetCoreMvc
./deploy.ps1
builds the Sentry release and runs the apphttp://localhost:62920/Home/handled
to send an Event to Sentry or- Postman
localhost:62920/Home/checkout
{
"cart": [
{
"id": "wrench"
}
],'
"email": "[email protected]"
}
// X-transaction-ID: 11223
// X-session-ID: 22334
here