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
@@ -15,5 +15,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.8" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="6.7.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -4,8 +4,20 @@ using Microsoft.AspNetCore.Diagnostics.HealthChecks;
|
||||
using Microsoft.Extensions.Diagnostics.HealthChecks;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
// ── Sentry (GlitchTip) — hardcoded DSN, not overridable by env ────
|
||||
const string SentryDsn = "https://db94b9fc2f36425f9eb4b9f6f347dc73@glitchtip.tordais.cc/6";
|
||||
|
||||
var builder = WebApplication.CreateSlimBuilder(args);
|
||||
|
||||
// ── Sentry ────────────────────────────────────────────────────────
|
||||
builder.WebHost.UseSentry(options =>
|
||||
{
|
||||
options.Dsn = SentryDsn;
|
||||
options.MinimumBreadcrumbLevel = LogLevel.Debug;
|
||||
options.MinimumEventLevel = LogLevel.Error;
|
||||
options.TracesSampleRate = 0.1;
|
||||
});
|
||||
|
||||
// Strongly-typed configuration with validation
|
||||
builder.Services.AddOptions<AgentOptions>()
|
||||
.BindConfiguration(AgentOptions.SectionName)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.8" />
|
||||
<PackageReference Include="Polly.RateLimiting" Version="8.5.2" />
|
||||
<PackageReference Include="Scalar.AspNetCore" Version="2.0.2" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="6.7.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -11,8 +11,20 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
// ── 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;
|
||||
});
|
||||
|
||||
// ── Rate Limiting (Polly/System.Threading.RateLimiting) ───────────
|
||||
builder.Services.AddRateLimiter(options =>
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MudBlazor" Version="9.1.0" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="6.7.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -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