Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ScopeName is the instrumentation scope name.
ScopeName = "github.com/ingka-group/fastecho/"
)
Variables ¶
This section is empty.
Functions ¶
func GetHttpRequestAttributes ¶
func GetHttpRequestAttributes(c echo.Context, req *http.Request, config *TracerConfig) []attribute.KeyValue
func Middleware ¶
func Middleware(options ...Option) echo.MiddlewareFunc
Middleware returns echo middleware which will trace incoming requests.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithPropagators ¶
func WithPropagators(propagators propagation.TextMapPropagator) Option
func WithServiceName ¶
WithServiceName specifies the name of the service
func WithSkipper ¶
func WithSkipper(skipper middleware.Skipper) Option
WithSkipper specifies a skipper for allowing requests to skip generating spans.
func WithTracerProvider ¶
func WithTracerProvider(provider oteltrace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.
type TracerConfig ¶
type TracerConfig struct { TracerProvider oteltrace.TracerProvider Propagators propagation.TextMapPropagator Skipper middleware.Skipper ServiceName string Env string }
Click to show internal directories.
Click to hide internal directories.