Configuration

Environment variables and explicit settings for Axis diagnostics.

Environment variables

VariablePurpose
SENTRY_DSNEnables the Sentry sink
SENTRY_ENVIRONMENTSets the Sentry environment
SENTRY_RELEASESets the release tag
SENTRY_DEBUGEnables SDK debug logging when truthy
SENTRY_TRACES_SAMPLE_RATEOptional 0..1 transaction sample rate
AXIS_SENTRY_ENABLEDForce-disables Sentry when set to false, 0, or no
AXIS_DIAGNOSTICS_MEMORY_LIMITCaps in-memory diagnostic events

Explicit configuration

AxisDiagnostics.Configure(new AxisDiagnosticsOptions {
  EnableSentry = true,
  SentryDsn = "...",
  Environment = "development",
  Release = "axis-next@0.1.0",
  TracesSampleRate = 0.2
});