sentry

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sentry initializes the Sentry SDK with a shutdown flush hook.

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Invoke(Init),
)

Module invokes Init; requires a sentry.Config in the graph.

Functions

func Init

func Init(lc fx.Lifecycle, cfg Config) error

Init initializes the Sentry error tracking SDK and registers a lifecycle hook to flush events on application shutdown. Returns nil if DSN is empty, skipping initialization.

Types

type Config

type Config struct {
	DSN         string
	Environment string
	Release     string
	Debug       bool
}

Config carries the Sentry client settings supplied by the service.

Jump to

Keyboard shortcuts

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