monitor

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2022 Molecula Corp. (DBA FeatureBase). SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	LevelPanic = iota
	LevelError
	LevelWarn
	LevelInfo
	LevelDebug
)

Variables

This section is empty.

Functions

func CaptureException

func CaptureException(level int, format string, v ...interface{})

CaptureException sends an error to Sentry.

func CaptureMessage

func CaptureMessage(message string)

CaptureMessage sends a message to Sentry.

func Finish

func Finish(span *sentry.Span)

func InitErrorMonitor

func InitErrorMonitor(version string)

Initialiazing Sentry with particular settings

func IsOn

func IsOn() bool

IsOn returns true if the monitor is enabled.

func StartSpan

func StartSpan(ctx context.Context, txType, txName string) *sentry.Span

Wrappers around Sentry's span to minimize exposure of sentry elsewhere in the codebase and for single-responsibility

Types

This section is empty.

Jump to

Keyboard shortcuts

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