observability

package
v0.0.0-...-7de319a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBreadcrumb

func AddBreadcrumb(ctx context.Context, category, message string, data map[string]interface{})

func CaptureError

func CaptureError(ctx context.Context, err error, tags map[string]string, extras map[string]interface{}) error

func CaptureMessage

func CaptureMessage(ctx context.Context, msg string, level sentry.Level, tags map[string]string)

func Flush

func Flush(timeout time.Duration)

func Init

func Init(cfg Config) (bool, error)

func StartSpan

func StartSpan(ctx context.Context, op, description string) *sentry.Span

func StartTransaction

func StartTransaction(ctx context.Context, name, op string) (*sentry.Span, context.Context)

Types

type Config

type Config struct {
	DSN string // Empty = telemetry disabled (no-op mode)

	Environment string // e.g. "development", "production"

	Release string // git sha or semver — helps Sentry group regressions

	TracesSampleRate float64 // 0.0–1.0; 1.0 traces everything, 0.1 traces 10%

}

Jump to

Keyboard shortcuts

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