feat: add Sentry (GlitchTip) client to Api, Agent, Web
Add Sentry.AspNetCore v6.7.0 with hardcoded DSN constant (not overridable by env) pointing to GlitchTip instance at https://glitchtip.tordais.cc/6. Same DSN configured across all three entry-point projects: - Heimdall.Api - Heimdall.Agent - Heimdall.Web
This commit is contained in:
1 parent
8f095f1d5d
commit
cc52214404
6 files changed
+39
No files matched your search
@@ -4,8 +4,20 @@ using Heimdall.Web.Services;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using MudBlazor.Services;
|
||||
|
||||
// ── Sentry (GlitchTip) — hardcoded DSN, not overridable by env ────
|
||||
const string SentryDsn = "https://db94b9fc2f36425f9eb4b9f6f347dc73@glitchtip.tordais.cc/6";
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// ── Sentry ────────────────────────────────────────────────────────
|
||||
builder.WebHost.UseSentry(options =>
|
||||
{
|
||||
options.Dsn = SentryDsn;
|
||||
options.MinimumBreadcrumbLevel = LogLevel.Debug;
|
||||
options.MinimumEventLevel = LogLevel.Error;
|
||||
options.TracesSampleRate = 0.1;
|
||||
});
|
||||
|
||||
builder.Services.AddRazorComponents()
|
||||
.AddInteractiveServerComponents();
|
||||
|
||||
|
||||
Reference in new issue
Block a user