Registry / logging / thezeroslave-zapsentry

thezeroslave-zapsentry

JSON →
library1.24.0gogounverified

Integrates the Zap logging library with Sentry error reporting.

go get github.com/TheZeroSlave/zapsentry
INSTALL
IMPORT
SIG · THEZEROSLAVE-ZAPSE
T
thezeroslave-zapsentry
logginggov1.24.0
harness data pending
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.

Agent activity
36 hits · last 30 days
node
32
Resources
thezeroslave-zapsentry — go get thezeroslave-zapsentry · libregistry