sentry

package
v0.0.0-...-ceb351d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventIDKey    = "event_id"
	PlatformKey   = "platform"
	ServerNameKey = "server_name"
	ErrorKey      = "error"
)
View Source
const (
	DefaultStackTraceContext = 5
	DefaultWaitEnabler       = zapcore.PanicLevel
	DefaultFlushTimeout      = 5
)
View Source
const ErrorStackTraceKey = "error_stack_trace"
View Source
const SkipKey = "_sentry_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(logLevel string, sentryDSN string, opts ...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 WithFlushTimeout

func WithFlushTimeout(sentryFlushTimeoutInSeconds uint) Option

type StackTracer

type StackTracer interface {
	StackTrace() errors.StackTrace
}

Jump to

Keyboard shortcuts

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