sentryutils

package
v2.0.43 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sentryutils reports Flyte operation counts and server-side failures to Sentry. The DSN is hardcoded and is not user configuration; FLYTE_DISABLE_SENTRY=true opts out.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(ctx context.Context, operation string, n int64)

Count records n successful occurrences of operation.

func Disabled

func Disabled() bool

Disabled honors FLYTE_DISABLE_SENTRY, unset or unparsable means enabled.

func Flush

func Flush()

Flush drains buffered events and metrics. Sentry sends async, so a service shutting down has to wait or lose whatever is still queued.

func Init

func Init(ctx context.Context, environment string) bool

Init initializes the process-wide Sentry client and reports whether reporting is on.

func Interceptor

func Interceptor(operations map[string]string) connect.UnaryInterceptorFunc

Interceptor counts one operation per call for each procedure in operations (keyed by procedure, valued by operation name) and reports server-side failures as exceptions. Client-caused errors (invalid argument, not found, ...) are intentionally not reported as exceptions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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