Documentation ¶
Overview ¶
Package httpclient implement tel http.client wrapper which help to handle error The most important approach: perform logs by itself
DEPRECATED: use transport inside http.client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HTTPServerMiddleware ¶
HTTPServerMiddleware perform: * telemetry log injection * measure execution time * recovery
func (*Server) HTTPServerMiddlewareAll ¶
func (s *Server) HTTPServerMiddlewareAll(m metrics.HTTPTracker) func(next http.Handler) http.Handler
HTTPServerMiddlewareAll represent all essential metrics Execution order:
- opentracing injection via nethttp.Middleware
- recovery + measure execution time + debug log via own HTTPServerMiddleware
- metrics via metrics.NewHTTPMiddlewareWithOption
Click to show internal directories.
Click to hide internal directories.