Documentation ¶
Overview ¶
Package zlogsentry provides a zerolog writer which sends selected events to sentry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpecialFieldType ¶
type SpecialFieldType int
const ( SpecialFieldTag SpecialFieldType = iota SpecialFieldUserID )
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func New ¶
func New(hub *sentry.Hub, opts ...WriterOption) (*Writer, error)
func NewWithName ¶
func NewWithName(hub *sentry.Hub, name string, opts ...WriterOption) (*Writer, error)
type WriterOption ¶
type WriterOption func(*config)
func WithLevels ¶
func WithLevels(levels ...zerolog.Level) WriterOption
WithLevels configures zerolog levels that have to be sent to Sentry. Default levels are error, fatal, panic
func WithSpecialFieldType ¶
func WithSpecialFieldType(key string, typ SpecialFieldType) WriterOption
Click to show internal directories.
Click to hide internal directories.