Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Initialize the Sentry SDK with the given configuration. This should be called before any 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"`
Environment string `split_words:"true"`
Release string `split_words:"true"`
TrackPerformance bool `split_words:"true" default:"false"`
SampleRate float64 `split_words:"true" default:"1.0"`
Debug bool `default:"false"`
}
Sentry configuration
func (Config) GetRelease ¶
Get the configured version string or the current semantic version if not configured.
func (Config) UsePerformanceTracking ¶
Returns True if performance tracking is enabled.
Click to show internal directories.
Click to hide internal directories.