legacy

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(url *url.URL, opts ...HandlerOption) http.Handler

Types

type HandlerOption

type HandlerOption func(h *handlerConfiguration)

func HandlerInstrumenter

func HandlerInstrumenter(instrumenter handlerInstrumenter) HandlerOption

func Logger

func Logger(logger log.Logger) HandlerOption

func ReadMiddleware

func ReadMiddleware(m func(http.Handler) http.Handler) HandlerOption

ReadMiddleware adds a middleware for all read operations.

func Registry

func Registry(r *prometheus.Registry) HandlerOption

func SpanRoutePrefix

func SpanRoutePrefix(spanRoutePrefix string) HandlerOption

SpanRoutePrefix adds a prefix before the value of route tag in tracing spans.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL