sentry

package
v0.5.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureErr

func CaptureErr(err error, tags map[string]string)

CaptureErr sends an error to Sentry with optional string tags for context (e.g. round_id, share_index). No-op when Sentry is not initialized.

func FlushSentry

func FlushSentry()

FlushSentry drains buffered events before shutdown.

func InitSentry

func InitSentry(dsn, release, serverName string, logger log.Logger) error

InitSentry initializes the Sentry SDK with the given DSN. If dsn is empty, Sentry remains disabled and all capture calls become no-ops. The release string is attached to every event for deploy correlation (typically the binary version from ldflags). serverName identifies the specific node (e.g. the CometBFT moniker "val1") so events from different validators can be distinguished in the Sentry dashboard.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL