Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ServerMiddleware ¶ added in v2.0.4
ServerMiddleware perform: * telemetry log injection * measure execution time * recovery
func ServerMiddlewareAll ¶ added in v2.0.4
ServerMiddlewareAll represent all essential metrics Execution order:
- opentracing injection via nethttp.Middleware
- recovery + measure execution time + debug log via own ServerMiddleware
- metrics via metrics.NewHTTPMiddlewareWithOption
Types ¶
type Option ¶ added in v2.0.4
type Option interface {
// contains filtered or unexported methods
}
Option interface used for setting optional config properties.
func WithHttpTracker ¶ added in v2.0.4
func WithHttpTracker(t metrics.HTTPTracker) Option
func WithOperation ¶ added in v2.0.4
func WithOtelOpts ¶ added in v2.0.4
Click to show internal directories.
Click to hide internal directories.