zapsentry

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package zapsentry provide a zapcore.Core implementation for use sentry with zap.

Index

Constants

This section is empty.

Variables

View Source
var ModuleIgnore = []string{
	"go.uber.org/zap",
	"github.com/NateScarlet/zap-sentry",
}

ModuleIgnore configure stacktrace frame ignore by module prefix

Functions

This section is empty.

Types

type Core

type Core struct {
	zapcore.LevelEnabler
	Hub *sentry.Hub
	// contains filtered or unexported fields
}

Core send event to sentry.

func (*Core) Check

Check implements zapcore.Core

func (*Core) Sync

func (c *Core) Sync() error

Sync implements zapcore.Core

func (*Core) With

func (c *Core) With(fields []zapcore.Field) zapcore.Core

With implements zapcore.Core

func (*Core) Write

func (c *Core) Write(entry zapcore.Entry, fields []zapcore.Field) error

Jump to

Keyboard shortcuts

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