Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SentryCore ¶
type SentryCore struct { zapcore.LevelEnabler // contains filtered or unexported fields }
Core Implements a zapcore.Core that sends logged errors to Sentry
func (*SentryCore) Check ¶
func (s *SentryCore) Check(entry zapcore.Entry, check *zapcore.CheckedEntry) *zapcore.CheckedEntry
Check determines whether the supplied Entry should be logged (using the embedded LevelEnabler and possibly some extra logic). If the entry should be logged, the Core adds itself to the CheckedEntry and returns the result.
Write logs the entry and fields supplied at the log site and writes them to their destination. If a Sentry Hub field is present in the fields, that Hub will be used for reporting to Sentry, otherrwise the default Sentry Hub will be used.
Callers must use Check before calling Write.
func (*SentryCore) With ¶
func (s *SentryCore) With(fields []zap.Field) zapcore.Core
With adds structured context to the Core.
Click to show internal directories.
Click to hide internal directories.