Documentation ¶
Index ¶
Constants ¶
View Source
const (
LoggerKey = ctxKey("LoggerKey")
)
Variables ¶
This section is empty.
Functions ¶
func LoggerFrom ¶
LoggerFrom retrieves the stashed logger from a request context, as put there by StashLogger middleware.
func Observe ¶
Observe is the transport-independent observability middleware. As transport middlewares are run before application middlewares, we depend on the user having configured the transport-specific o11y middleware for this to work.
func ObserveHTTP ¶
ObserveHTTP configures a standard HTTP o11y stack. The handler wrappers are run in reverse order that they are applied, which means we have to 'wrap' our custom behaviour before any of the vendor middleware that it depends on.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.