Versions in this module Expand all Collapse all v2 v2.0.1 Apr 6, 2023 v2.0.0 Apr 6, 2023 Changes in this version + const ApmSpanKey + const CtxRequestKey + func GetNewTransactionContextFromExist(parentCtx context.Context) context.Context + func GetNewTransactionContextFromGin(c *gin.Context) context.Context + func IgnoreNone(*grpc.UnaryServerInfo) bool + func IgnoreNoneStream(*grpc.StreamServerInfo) bool + func Middleware(engine *gin.Engine, o ...Option) gin.HandlerFunc + func NewStreamClientInterceptor(o ...ClientOption) grpc.StreamClientInterceptor + func NewStreamServerInterceptor(o ...ServerOption) grpc.StreamServerInterceptor + func NewUnaryClientInterceptor(o ...ClientOption) grpc.UnaryClientInterceptor + func NewUnaryServerInterceptor(o ...ServerOption) grpc.UnaryServerInterceptor + func StartSpan(ctx context.Context, name string, spanType string) (*apm.Span, context.Context) + func StartTransaction(parent context.Context, name string, transactionType string) (*apm.Transaction, context.Context) + type ClientOption func(*clientOptions) + type Option func(*middleware) + func WithRequestIgnorer(r apmhttp.RequestIgnorerFunc) Option + func WithTracerMiddleware(t *apm.Tracer) Option + type RequestIgnorerFunc func(*grpc.UnaryServerInfo) bool + func DefaultServerRequestIgnorer() RequestIgnorerFunc + func NewRegexpRequestIgnorer(re *regexp.Regexp) RequestIgnorerFunc + type ServerOption func(*serverOptions) + func WithRecovery() ServerOption + func WithServerRequestIgnorer(r RequestIgnorerFunc) ServerOption + func WithServerStreamIgnorer(s StreamIgnorerFunc) ServerOption + func WithTracerGrpcServer(t *apm.Tracer) ServerOption + type StreamIgnorerFunc func(*grpc.StreamServerInfo) bool + func DefaultServerStreamIgnorer() StreamIgnorerFunc Other modules containing this package pub.ystar.site/go/go-admin-core