Environment variables
| Variable | Purpose |
|---|---|
SENTRY_DSN | Enables the Sentry sink |
SENTRY_ENVIRONMENT | Sets the Sentry environment |
SENTRY_RELEASE | Sets the release tag |
SENTRY_DEBUG | Enables SDK debug logging when truthy |
SENTRY_TRACES_SAMPLE_RATE | Optional 0..1 transaction sample rate |
AXIS_SENTRY_ENABLED | Force-disables Sentry when set to false, 0, or no |
AXIS_DIAGNOSTICS_MEMORY_LIMIT | Caps in-memory diagnostic events |
Explicit configuration
AxisDiagnostics.Configure(new AxisDiagnosticsOptions {
EnableSentry = true,
SentryDsn = "...",
Environment = "development",
Release = "axis-next@0.1.0",
TracesSampleRate = 0.2
});