mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-05 15:22:08 +00:00
fix: allow Sentry-free design-time tooling
This commit is contained in:
parent
60aa23769a
commit
42f66fbc69
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
builder.WebHost.UseSentry(options =>
|
builder.WebHost.UseSentry(options =>
|
||||||
{
|
{
|
||||||
|
options.Dsn = builder.Configuration["SENTRY_DSN"] ?? string.Empty;
|
||||||
|
options.Environment = builder.Configuration["SENTRY_ENVIRONMENT"]
|
||||||
|
?? builder.Environment.EnvironmentName.ToLowerInvariant();
|
||||||
options.TracesSampleRate = 1.0;
|
options.TracesSampleRate = 1.0;
|
||||||
options.SendDefaultPii = false;
|
options.SendDefaultPii = false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue