Adds a RequestMeta context bridge so events dispatched during an HTTP request can be attributed to it: a middleware stashes IP/UA/request-id on the request context, the generic Do* handlers associate that context with the transaction key, and DispatchPending/DispatchWithContext copy the metadata onto the watermill message at publish time. Existing dispatch call sites are unchanged. |
||
|---|---|---|
| .. | ||
| events.go | ||
| events_test.go | ||
| listeners.go | ||
| request_meta.go | ||
| testing.go | ||