Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
zapsentry
✓ github.com/TheZeroSlave/zapsentry
Creates a Zap logger that sends errors to Sentry.
package main
import (
"go.uber.org/zap"
"github.com/TheZeroSlave/zapsentry"
)
func main() {
cfg := zapsentry.Configuration{
Level: zap.ErrorLevel,
}
core, err := zapsentry.NewCore(cfg, zapsentry.NewSentryClientFromDSN("https://public:private@host/1"))
if err != nil {
panic(err)
}
logger := zap.New(core)
logger.Error("An error occurred")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.24.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.