Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware returns middleware that will trace incoming requests.
func NewMiddleware ¶
func NewMiddleware() *Middleware
func (*Middleware) ApplyFunc ¶
func (h *Middleware) ApplyFunc(_ *conf.Configuration) gin.HandlerFunc
func (*Middleware) Name ¶
func (h *Middleware) Name() string
func (*Middleware) Shutdown ¶
func (h *Middleware) Shutdown()
Shutdown will flush the tracer's span processor and then shut it down.
the middleware uses the global tracer provider, so this function is empty.you should call otelwoocoo.Shutdown() when application shutdown.
Click to show internal directories.
Click to hide internal directories.