Documentation ¶
Index ¶
- Constants
- Variables
- func CustomTag(key string, val interface{}) opentracing.Tag
- func ESTraceServerInterceptor() *http.Client
- func FromIncomingContext(ctx context.Context) opentracing.StartSpanOption
- func GRPCStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func GRPCUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func HBaseTrace(component, instance string) hbase.HookFunc
- func HTTPMetricServerInterceptor() gin.HandlerFunc
- func HTTPTraceServerInterceptor() gin.HandlerFunc
- func HeaderExtractor(hdr map[string][]string) opentracing.StartSpanOption
- func HeaderInjector(ctx context.Context, hdr map[string][]string) context.Context
- func MetadataExtractor(md map[string][]string) opentracing.StartSpanOption
- func MetadataInjector(ctx context.Context, md metadata.MD) context.Context
- func RPCTraceStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func RPCTraceUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func SpanFromContext(ctx context.Context) opentracing.Span
- func StartSpanFromContext(ctx context.Context, op string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
- func TagComponent(component string) opentracing.Tag
- func TagSpanKind(kind string) opentracing.Tag
- func TagSpanURL(url string) opentracing.Tag
- type ESTracedTransport
- type MetadataReaderWriter
- type NullStartSpanOption
- type TraceConfig
- type Tracing
Constants ¶
View Source
const MaxContentLength = 1 << 16
Variables ¶
View Source
var ( // String ... String = log.String )
Functions ¶
func ESTraceServerInterceptor ¶ added in v1.6.17
func FromIncomingContext ¶
FromIncomingContext ...
func GRPCStreamServerInterceptor ¶ added in v1.1.23
func GRPCStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
GRPCStreamServerInterceptor 监控程序跟踪
func GRPCUnaryServerInterceptor ¶ added in v1.1.23
func GRPCUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
GRPCUnaryServerInterceptor 监控程序跟踪
func HBaseTrace ¶ added in v1.1.3
HBaseTrace ...
func HTTPMetricServerInterceptor ¶ added in v1.1.23
func HTTPMetricServerInterceptor() gin.HandlerFunc
HTTPMetricServerInterceptor 监控程序跟踪
func HTTPTraceServerInterceptor ¶ added in v1.1.2
func HTTPTraceServerInterceptor() gin.HandlerFunc
HTTPTraceServerInterceptor 链路跟踪
func HeaderExtractor ¶
HeaderExtractor ...
func HeaderInjector ¶
HeaderInjector ...
func MetadataExtractor ¶
MetadataExtractor ...
func MetadataInjector ¶
MetadataInjector ...
func RPCTraceStreamServerInterceptor ¶ added in v1.1.2
func RPCTraceStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
RPCTraceStreamServerInterceptor ...
func RPCTraceUnaryServerInterceptor ¶ added in v1.1.2
func RPCTraceUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
RPCTraceUnaryServerInterceptor ...
func SpanFromContext ¶
SpanFromContext ...
Types ¶
type ESTracedTransport ¶ added in v1.6.17
type MetadataReaderWriter ¶
MetadataReaderWriter ...
func (MetadataReaderWriter) ForeachKey ¶
func (w MetadataReaderWriter) ForeachKey(handler func(key, val string) error) error
ForeachKey ...
type NullStartSpanOption ¶
type NullStartSpanOption struct{}
NullStartSpanOption ...
func (NullStartSpanOption) Apply ¶
func (sso NullStartSpanOption) Apply(options *opentracing.StartSpanOptions)
Apply ...
type TraceConfig ¶
type TraceConfig struct { ServiceName string SamplingServerURL string SamplingParam float64 SamplingType string BufferFlushInterval time.Duration LogSpans bool QueueSize int PropagationFormat string }
TraceConfig 实列
Click to show internal directories.
Click to hide internal directories.