zapsentry

package
v2.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2020 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (
	EventIDKey     = "event_id"
	ProjectKey     = "project"
	TimestampKey   = "timestamp"
	LoggerKey      = "logger"
	PlatformKey    = "platform"
	CulpritKey     = "culprit"
	ServerNameKey  = "server_name"
	ErrorKey       = "error"
	HTTPRequestKey = "http_request"
)
View Source
const (
	DefaultFlushTimeout = 5 * time.Second
)
View Source
const ErrorStackTraceKey = "error_stack_trace"
View Source
const SkipKey = "_zapsentry_skip"
View Source
const TagPrefix = "#"

Variables

This section is empty.

Functions

func Skip

func Skip() zapcore.Field

Skip returns a field that tells zapsentry to skip the log entry.

Types

type Core

type Core struct {
	zapcore.LevelEnabler
	// contains filtered or unexported fields
}

func NewCore

func NewCore(enab zapcore.LevelEnabler, client *sentry.Client, options ...Option) *Core

func (*Core) Check

func (core *Core) Check(entry zapcore.Entry, checked *zapcore.CheckedEntry) *zapcore.CheckedEntry

func (*Core) Sync

func (core *Core) Sync() error

func (*Core) With

func (core *Core) With(fields []zapcore.Field) zapcore.Core

func (*Core) Write

func (core *Core) Write(entry zapcore.Entry, fields []zapcore.Field) error

type Option

type Option func(*Core)

func SetFlushTimeout

func SetFlushTimeout(timeout time.Duration) Option

func SetStackTraceSkip

func SetStackTraceSkip(skip int) Option

type StackTracer

type StackTracer interface {
	StackTrace() errors.StackTrace
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL