Expand description
Initialization of error reporting and distributed tracing.
Call init_sentry and init_tracing during server startup.
Sentry must be initialized before the Tokio runtime is created so it can
instrument async tasks from the start.
Functionsยง
- ensure_
log_ error - Logs an error to the configured logger or
stderrif not yet configured. - init_
sentry - Initializes the Sentry error-reporting client, if a DSN is configured.
- init_
tracing - Initializes the global tracing subscriber with structured logging and optional Sentry integration.