Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶
Dispatch executes a handler function asynchronously in a new goroutine. The background context inherits every value from the caller's ctx (logger, Sentry hub, trace IDs, etc.) but the cancellation signal is severed via context.WithoutCancel — the entry-point request will return before the background work completes, and we do not want that to cancel the tail. Handler errors route through errutil.Handle so they land in Sentry alongside the structured log. Pending dispatches are tracked by a package-level WaitGroup so tests can synchronise on completion via Wait().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.