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" UserKey = "user" )
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 ¶
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
type StackTracer ¶
type StackTracer interface {
StackTrace() errors.StackTrace
}
type User ¶
type User sentry.User
User extends sentry.User to be a zapcore.ObjectMarshaler.
This object can be passed to the logger as a field, causing the underlying core to set Event.User to the field value.
func (User) MarshalLogObject ¶
func (user User) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements zapcore.ObjectMarshaler interface.
Click to show internal directories.
Click to hide internal directories.