Documentation
¶
Overview ¶
Package sentryutils reports Flyte operation counts and server-side failures to Sentry. The DSN is hardcoded and is not user configuration; DO_NOT_TRACK=1 opts out (FLYTE_DISABLE_TELEMETRY=true and the legacy FLYTE_DISABLE_SENTRY=true are honored too).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.