Documentation ¶
Index ¶
- func NewMiddleware(next http.Handler, name string, typeName string, spanKind trace.SpanKind) http.Handler
- func NewService(ctx context.Context, service string, next http.Handler) http.Handler
- func Proto(proto string) string
- func SetStatusErrorf(ctx context.Context, format string, args ...interface{})
- func WrapEntryPointHandler(ctx context.Context, tracer *tracing.Tracer, ...) alice.Constructor
- func WrapMiddleware(ctx context.Context, constructor alice.Constructor) alice.Constructor
- func WrapRouterHandler(ctx context.Context, router, routerRule, service string) alice.Constructor
- type Traceable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware(next http.Handler, name string, typeName string, spanKind trace.SpanKind) http.Handler
NewMiddleware returns a http.Handler struct.
func NewService ¶
NewService creates a new tracing middleware that traces the outgoing requests.
func SetStatusErrorf ¶
SetStatusErrorf flags the span as in error and log an event.
func WrapEntryPointHandler ¶
func WrapEntryPointHandler(ctx context.Context, tracer *tracing.Tracer, semConvMetricRegistry *metrics.SemConvMetricsRegistry, entryPointName string) alice.Constructor
WrapEntryPointHandler Wraps tracing to alice.Constructor.
func WrapMiddleware ¶
func WrapMiddleware(ctx context.Context, constructor alice.Constructor) alice.Constructor
WrapMiddleware adds traceability to an alice.Constructor.
func WrapRouterHandler ¶
func WrapRouterHandler(ctx context.Context, router, routerRule, service string) alice.Constructor
WrapRouterHandler Wraps tracing to alice.Constructor.
Types ¶
Click to show internal directories.
Click to hide internal directories.