instrument

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChiV5Middleware added in v0.3.0

func ChiV5Middleware() func(http.Handler) http.Handler

func EchoV4Middleware added in v0.3.0

func EchoV4Middleware() echo.MiddlewareFunc

func FiberV2Middleware added in v0.6.0

func FiberV2Middleware() fiber.Handler

func GRPCStreamClientInterceptor

func GRPCStreamClientInterceptor() grpc.DialOption

func GRPCStreamServerInterceptor

func GRPCStreamServerInterceptor() grpc.ServerOption

func GRPCUnaryClientInterceptor

func GRPCUnaryClientInterceptor() grpc.DialOption

func GRPCUnaryServerInterceptor

func GRPCUnaryServerInterceptor() grpc.ServerOption

func GinMiddleware added in v0.2.0

func GinMiddleware() gin.HandlerFunc

func Init

func Init() func()

func InsertHeader

func InsertHeader(r *http.Request) *http.Request

func Open

func Open(driverName, dataSourceName string) (*sql.DB, error)

func OpenDB

func OpenDB(c driver.Connector) *sql.DB

func Report

func Report(ctx context.Context, e event.Event, metadata ...any) context.Context

func WrapGorillaMuxRouter added in v0.3.0

func WrapGorillaMuxRouter(r *mux.Router) *muxtrace.Router

func WrapHTTPClient

func WrapHTTPClient(client *http.Client) *http.Client

func WrapHandler

func WrapHandler(handler http.Handler) http.Handler

func WrapHandlerFunc

func WrapHandlerFunc(handlerFunc http.HandlerFunc) http.HandlerFunc

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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