All SDKs
Blazor WebAssembly
vSentry.AspNetCore.Blazor.WebAssembly
Use the official Sentry SDK with the DSN shown in your AllStak project setup. No AllStak-specific SDK is required.
Install
These official Sentry commands come from the AllStak-managed SDK catalog.
nuget
Install-Package Sentry.AspNetCore.Blazor.WebAssemblydotnet
dotnet add package Sentry.AspNetCore.Blazor.WebAssemblyQuick start
using Sentry;
SentrySdk.Init(options =>
{
options.Dsn = "{{DSN}}";
options.Environment = "production";
options.Release = "[email protected]";
options.TracesSampleRate = 1.0;
// Off by default. Enable only if you accept sending usernames,
// emails and IP addresses to your telemetry backend.
options.SendDefaultPii = false;
});
SentrySdk.CaptureException(new Exception("hello from Sentry .NET"));