Documentation ¶
Index ¶
- type Writer
- type WriterOption
- func WithDebug() WriterOption
- func WithEnvironment(environment string) WriterOption
- func WithLevels(levels ...zerolog.Level) WriterOption
- func WithRelease(release string) WriterOption
- func WithSampleRate(rate float64) WriterOption
- func WithServerName(serverName string) WriterOption
- func WithTags(tags map[string]string) WriterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WriterOption ¶
type WriterOption interface {
// contains filtered or unexported methods
}
func WithEnvironment ¶
func WithEnvironment(environment string) WriterOption
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 WithRelease ¶
func WithRelease(release string) WriterOption
func WithSampleRate ¶
func WithSampleRate(rate float64) WriterOption
WithSampleRate configures the sample rate as a percentage of events to be sent in the range of 0.0 to 1.0
func WithServerName ¶
func WithServerName(serverName string) WriterOption
WithServerName configures the server name field for events. Default value is OS hostname
func WithTags ¶
func WithTags(tags map[string]string) WriterOption
WithTags configures additional tags for the scope
Click to show internal directories.
Click to hide internal directories.