Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiddlewareBuilder ¶
type MiddlewareBuilder struct {
Tracer trace.Tracer // Tracer is an interface that abstracts the tracing functionality.
}
MiddlewareBuilder is a struct that aids in constructing middleware with tracing capabilities. It holds a reference to a Tracer instance which will be used to trace the flow of HTTP requests.
func (MiddlewareBuilder) Build ¶
func (m MiddlewareBuilder) Build() mist.Middleware
Build is a method attached to the MiddlewareBuilder struct. This method initializes and returns a Tracing middleware that can be used in the mist HTTP framework. This middleware is responsible for starting a new span for each incoming HTTP request, sets various attributes related to the request and ensures that the span is ended properly after the request is handled.
Click to show internal directories.
Click to hide internal directories.