Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachCoreToLogger ¶
func NewCore ¶
func NewCore(cfg Configuration, factory SentryClientFactory) (zapcore.Core, error)
Types ¶
type ClientGetter ¶
type ClientGetter interface {
GetClient() *sentry.Client
}
type Configuration ¶
type Configuration struct { Tags map[string]string DisableStacktrace bool Level zapcore.Level FlushTimeout time.Duration Hub *sentry.Hub }
Configuration is a minimal set of parameters for Sentry integration.
type SentryClientFactory ¶
type SentryClientFactory func() (*sentry.Client, error)
func NewSentryClientFromClient ¶
func NewSentryClientFromClient(client *sentry.Client) SentryClientFactory
func NewSentryClientFromDSN ¶
func NewSentryClientFromDSN(DSN string) SentryClientFactory
Click to show internal directories.
Click to hide internal directories.