zapsentry

package module
v0.0.0-...-fca2eb3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2017 License: MIT Imports: 3 Imported by: 0

README

zap-sentry

Zap Core for Sentry

This project clone from uber-go/fx, to aviod dependencies in vendor

Documentation

Index

Constants

View Source
const (
	Development = "development"
	Production  = "production"
	Nop         = "nop"
)

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *zap.SugaredLogger

func NewDefault

func NewDefault(opts ...Option)

func S

func S() *zap.SugaredLogger

Types

type Configuration

type Configuration struct {
	DSN   string `yaml:"DSN"`
	Tags  map[string]string
	Trace trace
}

Configuration is a minimal set of parameters for Sentry integration.

func (Configuration) Build

func (c Configuration) Build() (zapcore.Core, error)

Build uses the provided configuration to construct a Sentry-backed logging core.

type Option

type Option func(o *option)

func WithSentry

func WithSentry(sentryDNS string, tags map[string]string, fields []zapcore.Field) Option

func WithStage

func WithStage(stage string) Option

Jump to

Keyboard shortcuts

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