sentryzapcore

package
v0.0.0-...-5bb5805 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSentryCore

func NewSentryCore(cfg SentryCoreConfig, sentryClient *sentry.Client) zapcore.Core

NewSentryCore 生成Core对象

Types

type SentryCoreConfig

type SentryCoreConfig struct {
	Tags              map[string]string // 初始化带上的tag
	DisableStacktrace bool
	Level             zapcore.Level
	FlushTimeout      time.Duration
	Hub               *sentry.Hub
}

SentryCoreConfig 定义 Sentry Core 的配置参数.

Jump to

Keyboard shortcuts

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