Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HoneycombMiddleware ¶
func HoneycombMiddleware(fn func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
HoneycombMiddleware will wrap our HTTP handle funcs to automatically generate an event-per-request and set properties on them.
Types ¶
type HoneyResponseWriter ¶
type HoneyResponseWriter struct { *libhoney.Event http.ResponseWriter StatusCode int }
func (*HoneyResponseWriter) WriteHeader ¶
func (hrw *HoneyResponseWriter) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.