zapsentry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: MIT Imports: 8 Imported by: 0

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 (
	DefaultStackTraceContext = 5
	DefaultWaitEnabler       = zapcore.PanicLevel
)
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 *raven.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 SetStackTraceContext

func SetStackTraceContext(context int) Option

func SetStackTracePackagePrefixes

func SetStackTracePackagePrefixes(prefixes []string) Option

func SetStackTraceSkip

func SetStackTraceSkip(skip int) Option

func SetWaitEnabler

func SetWaitEnabler(enab zapcore.LevelEnabler) 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