Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Initialize the Sentry SDK with the configuration; must be called before servers are started
func TrackPerformance ¶
func TrackPerformance(tags map[string]string) gin.HandlerFunc
Gin middleware that tracks HTTP request performance with Sentry
Types ¶
type Config ¶
type Config struct {
DSN string `split_words:"true"`
ServerName string `split_words:"true"`
Environment string `split_words:"true"`
Release string `split_words:"true"`
TrackPerformance bool `split_words:"true" default:"false"`
SampleRate float64 `split_words:"true" default:"0.2"`
Debug bool `default:"false"`
}
Sentry configuration for use in application-configuration
func (Config) ClientOptions ¶
func (c Config) ClientOptions() sentry.ClientOptions
func (Config) GetRelease ¶
func (Config) UsePerformanceTracking ¶
Performance tracking is enabled if Sentry is enabled and track performance is explicitly set
Click to show internal directories.
Click to hide internal directories.