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 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 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.