Module observability

Module observability 

Source
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 stderr if 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.