Documentation ¶
Index ¶
- func BuildOpenTracerAgentInterceptor(serviceName, agentHostPort string, operationPrefix []byte) (closeFunc func(), middleware gin.HandlerFunc, err error)
- func BuildOpenTracerCollectorInterceptor(serviceName, collectorHost string, operationPrefix []byte) (closeFunc func(), middleware gin.HandlerFunc, err error)
- func BuildOpenTracerInterceptor(serviceName, agentHostPort string, operationPrefix []byte) (closeFunc func(), middleware gin.HandlerFunc, err error)
- func InitTracing(serviceName string, url string) (tracer opentracing.Tracer, reporter jaeger.Reporter, closer io.Closer, ...)
- func NewDefaultPanicInterceptor() gin.HandlerFunc
- func NewDefaultRequestInterceptor() gin.HandlerFunc
- func NewPanicInterceptor(logger internal.ILogger) gin.HandlerFunc
- func NewRequestInterceptor(logger internal.ILogger) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOpenTracerAgentInterceptor ¶ added in v0.0.14
func BuildOpenTracerAgentInterceptor( serviceName, agentHostPort string, operationPrefix []byte, ) ( closeFunc func(), middleware gin.HandlerFunc, err error, )
BuildOpenTracerAgentInterceptor create an interceptor using the jaeger agent
func BuildOpenTracerCollectorInterceptor ¶ added in v0.0.14
func BuildOpenTracerCollectorInterceptor( serviceName, collectorHost string, operationPrefix []byte, ) ( closeFunc func(), middleware gin.HandlerFunc, err error, )
BuildOpenTracerCollectorInterceptor create an interceptor using the jaeger collector directly
func BuildOpenTracerInterceptor ¶ added in v0.0.7
func BuildOpenTracerInterceptor( serviceName, agentHostPort string, operationPrefix []byte, ) ( closeFunc func(), middleware gin.HandlerFunc, err error, )
BuildOpenTracerInterceptor is an alias for BuildOpenTracerAgentInterceptor
func InitTracing ¶ added in v0.0.13
func InitTracing(serviceName string, url string) ( tracer opentracing.Tracer, reporter jaeger.Reporter, closer io.Closer, err error)
InitTracing - init opentracing with use http
func NewDefaultPanicInterceptor ¶
func NewDefaultPanicInterceptor() gin.HandlerFunc
NewDefaultPanicInterceptor returns a gin middleware with a internal.BuiltinLogger
func NewDefaultRequestInterceptor ¶
func NewDefaultRequestInterceptor() gin.HandlerFunc
func NewPanicInterceptor ¶
func NewPanicInterceptor(logger internal.ILogger) gin.HandlerFunc
NewPanicInterceptor returns a gin middleware
func NewRequestInterceptor ¶
func NewRequestInterceptor(logger internal.ILogger) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.