Documentation
¶
Index ¶
Constants ¶
const Dev = "dev"
Variables ¶
This section is empty.
Functions ¶
func EmptyLogger ¶
func LogAndMaskErr ¶
LogAndMaskErr records an error but masks it with a generic one to avoid leaking sensitive information
func ScopedHelper ¶
ScopedHelper returns a new helper with information about the current component
func SentryBeforeSend ¶ added in v1.104.6
SentryBeforeSend enriches Sentry error events so issues are distinguishable at a glance and group deterministically by failure mode:
- A structured discriminator extends Sentry's default fingerprint
- A generic wrapper type on the primary exception is rewritten to the root-cause type
- Tags expose the root-cause metadata for search
Events without an original error to analyze (messages, transactions) and errors without a structured discriminator are left untouched, preserving Sentry's default grouping. Joined multi-errors (errors.Join) also keep default grouping: bundling independent failures makes any single fingerprint misleading, though their metadata is tagged.
Types ¶
This section is empty.