monitor

package
v0.0.0-...-b708652 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SentryHandler = sentryhttp.New(sentryhttp.Options{
	Repanic:         true,
	WaitForDelivery: true,
	Timeout:         2 * time.Second,
})

Functions

func SentryInit

func SentryInit()

Types

type LogInput

type LogInput struct {
	Message    string `json:"message"`
	Attributes string `json:"attributes"`
	Resources  interface{}
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger() *Logger

func (*Logger) DPanic

func (l *Logger) DPanic()

suppose to behave the same as panic in development and error in production

func (*Logger) Debug

func (l *Logger) Debug()

func (*Logger) Error

func (l *Logger) Error()

func (*Logger) Fatal

func (l *Logger) Fatal()

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, input *LogInput)

func (*Logger) LinkAnalytic

func (l *Logger) LinkAnalytic()

authorid, link-slug, time

func (*Logger) Panic

func (l *Logger) Panic()

func (*Logger) Warn

func (l *Logger) Warn()

Jump to

Keyboard shortcuts

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